<template>
	<view class="sendcar">
		<!-- <u-navbar  title="派单列表"  :background="background" title-color="#FFF" back-icon-color="#fff"></u-navbar> -->
		<view class="public-nav">
			<view class="public-nav-fixed">
				<view class="public-nav-top" style="background-color: #007AFF;color: #FFFFFF;">
					<view class="public-nav-top-status-bar" :style="{ height: systemInfo.statusBarHeight + 'px' }">
					</view>
					<view class="public-nav-top-navbar-inner"
						:style="{ height: navHeight + 'px', lineHeight:navHeight+'px' }">
						<text class="iconfont iconarrow_left-copy" @click="returnclick"></text>
						<view class="" style="display: flex;">
							<view>选择车辆</view>

						</view>

					</view>
				</view>
			</view>
			<view class="public-nav-placeholder"
				:style="{ height:Number(navHeight)+ Number(systemInfo.statusBarHeight) + 'px' }">
			</view>
		</view>

		<view class="sendSubmitOrder-sal-type">
			<view class="sendSubmitOrder-sal-type-text">
				扣款账户:
			</view>
			<view class="sendSubmitOrder-sal-type-radio">
				<u-radio-group active-color="#32CD32" v-model="zh" size="40" @change="radioGroupChange">
					<u-radio @change="radioChange" style="padding-right: 50rpx;" label-size="36"
						v-for="(item, index) in zhlist" :key="index" :name="item.name" :disabled="item.disabled">
						{{item.name}}
					</u-radio>

				</u-radio-group>

			</view>

		</view>
		<view class="sendcar-top" v-if="zh=='他人账户' && value=='自买自提'" style="width: 100%; display: block;">
			<view class="" v-if="zhArray.length==0" style="padding-left: 40rpx;">
				暂无可用账户
			</view>
			<view class="sendcar-top-way" v-if="zhArray.length>0">
				<picker class="addCar-input-one" mode='selector' @change="bindPickerChange" :value="msgobjzm.wlcj"
					:range="zhArray" range-key="ORMTB510CA00">
					<i class="addCar-phone-placeholder" v-if="msgobjzm.wlcj<0">请选择账户</i>
					<view v-else class="uni-input">{{zhArray[msgobjzm.wlcj].ORMTB510CA00}}</view>
				</picker>
			</view>
		</view>

		<view class="sendSubmitOrder-sal-type">
			<view class="sendSubmitOrder-sal-type-text">
				派单模式:
			</view>
			<view class="sendSubmitOrder-sal-type-radio">
				<u-radio-group v-model="value" active-color="#32CD32" size="40" @change="RadioChangezp">
					<u-radio v-for="(item, index) in padlist" label-size="36" style="padding-right: 18rpx;" :key="index"
						:name="item.name" :disabled="item.disabled">
						{{item.name}}
					</u-radio>
				</u-radio-group>
			</view>

		</view>
		<!-- <view class="sendSubmitOrder-sal-type" v-if="value=='含货配送'">
			<view class="sendSubmitOrder-sal-type-text">
				配送模式:
			</view>
			<view class="sendSubmitOrder-sal-type-radio">
				<u-radio-group v-model="value1" active-color="#32CD32" size="40" @change="RadioChangezpcl">
					<u-radio v-for="(item, index) in carListyw" label-size="36" style="padding-right: 96rpx;" :key="index"
						:name="item.name" :disabled="item.disabled">
						{{item.name}}
					</u-radio>
				</u-radio-group>
			</view>
		</view> -->
		<view class="xd-main" v-if="value =='自买自提'">
			<view class="sendcar-top">
				<view class="sendcar-top-way">
					<button style="margin-left: 0;" type="default" :class="way==1?'buttom-active':''"
						@click="wayClick(1)">毛重</button>
					<button type="default" :class="way==0?'buttom-active':''" @click="wayClick(0)">净重</button>

					<!-- <button style="margin-left: 0;" type="default" class="buttom-active"
						@click="xzdataFun">新增</button> -->
					<!-- <view >
						新增账户
					</view> -->
				</view>

				<!-- <view class="sendcar-top-shaft">
				<button type="default" :class="item.Class" v-for="(item,index) in shaftList" :key="index" @click="shaftClick(item)">{{item.SETTB206CA01}}</button>
			</view> -->
			</view>

			<view class="" v-if="value =='自买自提'">
				<view v-if="erpInfo.SETTB99ID == '10000128' || erpInfo.SETTB99ID=='10000129'" class="sendcar-addcar"
					style="display: flex;justify-content: space-between;" @click="addcarshowsfz">
					<text>+身份证</text>
					<view class="" style="color: #FF0000;" v-if="Object.keys(carUserObj).length != 0">
						<!-- .replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2') -->
						{{carUserObj.name}} <text
							style="padding-left: 20rpx;">{{carUserObj.sfz.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')}}</text>
					</view>
				</view>

				<view class="sendcar-li" v-for="(item,index) in carList" :key="index">
					<view class="sendcar-li-top" :class="item.classStyle">
						<view class="sendcar-li-top-carnum">
							{{item.ORDTB400CA01}}
						</view>
						<view class="sendcar-li-top-carnum font-name-user">
							{{item.zhName}}
						</view>

						<u-icon size="40" name="trash" color="#FF0000" @click="cardelete(item)"></u-icon>
						<!-- <text class="iconfont iconyichu" @click="cardelete(item)"></text> -->
					</view>



					<view class="sendcar-li-content">
						<view class="sendcar-li-content-number">
							<text class="SLCW-operation" @click="Reduction(item,'small','weight')">-</text>
							<text class="SLCW-ipt" @click="numtap(item,'small','weight')">{{item.ORDTB400CA07}}</text>
							<text class="SLCW-operation" @click="add(item,'small','weight')">+</text>
							<label>
								吨
							</label>
						</view>
						<view class="sendcar-li-content-number">
							<text class="SLCW-operation" @click="Reduction(item,'whole','time')">-</text>
							<text class="SLCW-ipt" @click="numtap(item,'whole','time')">{{item.ORDTB404CA03}}</text>
							<text class="SLCW-operation" @click="add(item,'whole','time')">+</text>
							<label>次</label>
						</view>
					</view>
					<!-- <view v-for="(item,index) in xzzhlistdata" :key="index" class="sendcar-top" v-if="zh=='他人账户'"
						style="width: 100%; display: block;">
						<view class="sendcar-top-way" @click="xzzhfun(item)">
							<picker class="addCar-input-one" @change="xzbindPickerChange" :value="item.msgobj.wlcj"
								:data-list='item' :data-index="index" :range="item.zhArray" range-key="ORMTB510CA00">
								
								<i class="addCar-phone-placeholder" v-if="item.msgobj.wlcj<0">请选择账户</i>
					
								<view v-else class="uni-input">{{item.msgobj.wlcjName}}</view>
							</picker>
						</view>
					</view> -->
				</view>
			</view>


			<view class="sendcar-addcar " @click="addcarshow">
				+新增车辆
			</view>


			<view class="sendcar-bottom-height">
			</view>
		</view>
		<!-- v-if="value =='自买自提'" -->
		<view class="sendcar-bottome-nav">
			<view class="sendcar-bottome-nav-l">
				<view class="sendcar-bottome-nav-l-t" v-if="AuthorizationOBJ.ORMTB417CA06==0">
					￥***
				</view>
				<view class="sendcar-bottome-nav-l-t" v-else>
					￥{{sendTotalMoney}}
				</view>
				<view class="sendcar-bottome-nav-l-b">
					<text>共{{sendTotalCheshu}}车</text> {{sendTotalWeight}}{{materInfo.settb109CA05||'吨'}}
				</view>
			</view>
			<view class="sendcar-bottome-nav-r">
				<button type="default" @click="carUnfinished">下一步</button>
			</view>
		</view>

		<!-- <view class="sendcar-bottome-nav" style="padding: 0;" v-if="value =='含货配送'">

			<view class="sendcar-bottome-nav-r" style="width: 100%;">
				<button style="width: 100%; height: 100%;" type="default" @click="carUnfinished">下一步</button>
			</view>
		</view> -->

		<!-- 自买自提选车牌 -->
		<u-popup v-model="carshow" :closeable="true" close-icon='close' length="80%" mode="bottom" z-index="999"
			@close="carclose">

			<view class="" style="background: #fff;">
				<view class="" style="height: 22vh;">
					<view class="iscar-nav" style="">
						<view class="iscar-nav-top" v-if="platform==false"></view>
						<view v-else :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
						<view class="iscar-nav-search">
							<!-- <view class="iscar-nav-search-btn" @click="carshow=false">
							返回
						</view> -->
							<view class="iscar-nav-search-ipt">
								<u-search @custom="carcustom" @focus="focusFun" @blur="blurFun" placeholder="请输入车牌号"
									@change="valChange" v-model="carSearch" :show-action="true" action-text="添加"
									:action-style="actionStyle"></u-search>
							</view>
						</view>

						<view class="iscar-nav-btn">
							<view @click="checkedAll" v-if="ischeckedAll==true">全选</view>
							<view @click="nocheckedAll" v-if="ischeckedAll==false">全不选</view>
							<view @click="determine">确定</view>
						</view>
					</view>

				</view>
				<!-- platform==false?'padding-top: 32vh;':'padding-top: 32vh' -->
				<scroll-view scroll-y style="height: 100%;width: 100%;">
					<!-- :style="{paddingTop:padingTop}" -->
					<view class="iscar-content" :style="{paddingTop:padingTop}">
						<view v-if="platform==true" :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
						<u-checkbox-group :wrap="false" width="350rpx" @change="checkboxGroupChange">
							<u-checkbox size='40' label-size="40" v-model="item.checked"
								v-for="(item, index) in carnumlist" :key="index" :name="item.name">{{item.name}}
							</u-checkbox>
						</u-checkbox-group>
					</view>
				</scroll-view>
			</view>

		</u-popup>

		<!-- 自买自提选身份证 -->
		<u-popup v-model="carshowsfz" :closeable="true" close-icon='close' length="80%" mode="bottom" z-index="999"
			@close="caruserclose">

			<view class="" style="background: #fff;">
				<view class="" style="height: 22vh;">
					<view class="iscar-nav" style="">
						<view class="iscar-nav-top" v-if="platform==false"></view>
						<view v-else :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
						<view class="iscar-nav-search">
							<!-- <view class="iscar-nav-search-btn" @click="carshow=false">
							返回
						</view> -->
							<view class="iscar-nav-search-ipt">
								<u-search @custom="carcustomsfz" @focus="focusFun" @blur="blurFun" placeholder="请输入"
									@change="userValChange" v-model="caruserSearch" :show-action="true" action-text="添加"
									:action-style="actionStyle"></u-search>
							</view>
						</view>

						<view class="iscar-nav-btn">
							<view></view>
							<view @click="determinesfz">确定</view>
						</view>
					</view>

				</view>
				<!-- platform==false?'padding-top: 32vh;':'padding-top: 32vh' -->
				<scroll-view scroll-y style="height: 100%;width: 100%;">
					<!-- :style="{paddingTop:padingTop}" -->
					<view class="iscar-content" :style="{paddingTop:padingTop}">
						<view v-if="platform==true" :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
						<!-- <u-radio-group v-model="userValue" @change="checkboxGroupChangesfz">
							<u-radio size='40' @change="radiouserChange" shape="circle" label-size="38"
								v-for="(item, index) in userCarnumlist" :key="index" :name="item.sfz">{{item.name}}
								<text
									style="padding-left: 40rpx;">{{item.sfz.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')}}</text>
							</u-radio>
						</u-radio-group> -->
						<view class="uni-list">
							<radio-group v-model="selectedValue" @change="radiouserChange">
								<label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in userCarnumlist"
									:key="index.sfz" :id="item.name">
									<view style="line-height: 80rpx;">
										<radio :value="item.sfz" :checked="index === selectedValue" />
										<text style="padding-left: 20rpx;">{{item.name}}<text
												style="padding-left: 40rpx;">{{item.sfz.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')}}</text>
										</text>
									</view>
									
								</label>
							</radio-group>

						</view>
					</view>
				</scroll-view>
			</view>

		</u-popup>



		<!-- 收货地址选择 -->
		<u-popup v-model="shdpop" :closeable="true" close-icon='close' :mask="false" length="92%" mode="bottom"
			z-index="9999" @close="carcloseshAddrs">
			<view class="shdz-main-pop">
				<view class="" style="height: 10vh;">
					<view class="iscar-nav" style="">
						<view class="shtit">
							收货地址
						</view>


					</view>
				</view>
				<view class="vehicle">
					<!-- <u-navbar title="收货地管理" title-color="#333" back-icon-color="#333"></u-navbar> -->
					<view class="vehicle-bottom" style="margin-bottom: 140rpx;">

						<!-- 内容 -->
						<view class="shdList">
							<view class="vehicle-content-box" v-if="vehicleArrList.length!=0"
								v-for="(item,index) of vehicleArrList" :key="index" @click="xhdxzFun(item)">
								<!-- <view class="vehicle-content-box"> -->
								<!--  -->
								<view class="vehicle-content vehicle-car-zdy">
									<!-- 车牌号 -->
									<div>
										<div class="vehicle-car-details vehicle-carNumber"
											style="display: flex; justify-content: space-between;" ref="carNumbers">
											<view class="" style="width: 73%;">
												<p>
													<text class="xzxhdz" v-if="item.CHECKED=='TRUE'">✔</text>
													收货地：<text>{{item.ORMTB404CA00}}</text>
												</p>
											</view>

											<!-- <p></p> -->
											<!-- <view class="" @click.stop="getopsxinxi(item)" style="color: #0099ff;">
												<text class="iconfont iconchakan" style="padding-top: 8rpx;"></text>
												<text class="" ref='modify'>查看位置</text>
											</view> -->
										</div>
										<div class="vehicle-car-details">
											<p>详细地址：<text>{{item.ORMTB404CA05}}</text> </p>
											<!-- <p style="width: 70%;"></p> -->

										</div>
									</div>
									<!--  -->
									<view class="">
										<!-- <view class="vehicle-carName-phone">
									<view class="deliveryPlace-carName">
										<text class="vehicle-phone">运费:</text>
										<text class="vehicle-input-money">{{item.ORMTB404CA01}}元/吨</text>
									</view>
								</view>
								<view class="vehicle-carName-phone">
									<view class="deliveryPlace-carName">
										<text class="vehicle-phone">配送工地:</text>
										<text class="vehicle-input-money" @click="addDeliverySite(item)">{{item.count}}<text class="iconfont iconarrow_right"></text></text>
									</view>
								</view> -->
										<!--  -->
										<view class="vehicle-button-box" style="padding-top: 20rpx; padding-bottom: 0;">
											<!-- <view class="vehicle-add vehicle-button-margin" @click="getopsxinxi(item)"
											style="background: rgba(0, 160, 241, 1);">
											<text class="iconfont iconchakan" style="padding-top: 8rpx;"></text>
											<text class="vehicle-add-button" ref='modify'>查看位置</text>
										</view> -->
											<view class="vehicle-add vehicle-button-margin" @click.stop="modify(item)"
												style="background: rgba(229, 191, 0, 1);">
												<!-- <text class="iconfont iconxiugai"></text> -->
												<text class="vehicle-add-button" ref='modify'>修改</text>
											</view>
											<view class="vehicle-add" @click.stop="prohibit(item)"
												style="background: rgba(255, 76, 76, 1);">
												<!-- <text class="iconfont iconshanchu"></text> -->
												<text class="vehicle-add-button">删除</text>
											</view>
										</view>
										<!--  -->
									</view>

								</view>


							</view>
						</view>
						<!--  -->
						<view class="sendorder-loadmore">
							<u-loadmore v-if="vehicleArrList.length!=0" :status="status" :icon-type="iconType"
								:load-text="loadText" />
						</view>
						<!-- 缺醒页 -->
						<view class="zanWSJ" v-if="vehicleArrList.length==0">
							<image :src="getStaticFilePath('/QXY/noData.png')" alt="">
						</view>
						<u-modal v-model="vehicleLoginShow" :content="vehicleContent" :show-cancel-button="true"
							@confirm="vehicleConfirm"></u-modal>
					</view>
					<view class="xjshd">
						<!-- <view class="vehicle-car-box">
						<text class="vehicle-stick"></text>
						<text class="vehicle-car-details">车辆详情</text>
					</view> -->
						<view class="" style="margin: 0 auto;">
							<!-- <text class="iconfont icontianjia"></text>
						<text class="vehicle-add-button">添加</text> -->
							<u-button style="font-size: 32rpx;" type="error" @click="addCar" shape="circle"
								size="default">新建收货地址</u-button>
						</view>
					</view>
					<u-toast ref="uToast" />
				</view>
			</view>

		</u-popup>




		<!-- 运单发布填信息 -->
		<!-- @close="carclosefdxq" -->
		<u-popup v-model="carshowydxq" :closeable="true" close-icon='close' length="90%" mode="bottom" z-index="999">

			<view class="addCar">
				<!-- <u-navbar title="运单信息发布" title-color="#333" back-icon-color="#333"></u-navbar> -->
				<view class="addCar-bottom">
					<view class="" style="height: 8vh;">


						<view class="zx-addres">
							<view class="titfbyd" style="">
								运单信息发布
							</view>
							<view class="xh-text" style="line-height: 200rpx;">
								<span class="xie-huo-dizhi">卸</span>
							</view>
							<view class="xhdz-xinxi" @click="xhdlistFun">
								<view class="">
									<view class="" style="padding:10rpx; color:#DB9370">
										<text>{{xhdztitle.ORMTB404CA00||'&nbsp;'}}</text>
									</view>
									<view class="" style="padding-bottom:10rpx;">
										<text>{{xhdztitle.ORMTB404CA05||'请添加收货地址'}}</text>
									</view>
								</view>


								<!-- <u-cell-group :border="false" :title-style="styleCellGroup" class="cell-box">
									<u-cell-item bg-color="#F2F2F2" :title-style="styleCellGroup" class="cell-box"
										:border-top="false" :border-bottom="false"
										:title="xhdztitle.ORMTB404CA00||'请选择收货地'">
									</u-cell-item>
									<text>{{xhdztitle.ORMTB404CA05}}</text>
								</u-cell-group> -->
								<view class="" style="line-height: 200rpx;">
									<u-icon name="arrow-right"></u-icon>
								</view>
							</view>


						</view>
					</view>
					<scroll-view scroll-y style="height: 100%;width: 100%;">
						<view class="addCar-content-box">
							<view class="cx-box">
								<text class="addCar-phone">车型：</text>
								<u-radio-group v-model="cx" @change="radiocxGroupChange">
									<u-radio label-size="32" @change="radiocxChange" v-for="(item, index) in list1"
										:key="index" :name="item.name" :disabled="item.disabled"
										:checked="item.checked">
										{{item.name}}
									</u-radio>
								</u-radio-group>
								</checkbox-group>
							</view>
							<view class="addCar-carName-phone" v-if="userinfo.ORMTB410CB06=='1'">
								<text class="addCar-phone">账户：</text>
								<picker class="addCar-input-one" @change="bindPickerdfzhChange" :value="msgobj.dfzh"
									:range="dfzhArray" range-key="ZHNAME">
									<i class="addCar-phone-placeholder" v-if="msgobj.dfzh<0">请选择代发运单账户</i>
									<view v-else class="uni-input">{{dfzhArray[msgobj.dfzh].ZHNAME}}</view>
									<!-- <view v-else class="uni-input">{{cjArray[msgobj.wlcj].SETTB99CA00}}</view> -->
								</picker>
								<!-- <input class="addCar-input-one" type="text" placeholder="请选择厂家" v-model="msgobj.wlcj"
									maxlength="15" /> -->
							</view>
							<view class="addCar-carName-phone">
								<text class="addCar-phone">厂家：</text>
								<picker class="addCar-input-one" style="width:400rpx;" @change="bindPickercjChange"
									:value="msgobj.wlcj" :range="cjArray" range-key="SETTB99CA00">
									<i class="addCar-phone-placeholder" v-if="msgobj.wlcj<0">请选择厂家</i>
									<view class="uni-input" v-if="zmcjdata.cjxs =='0'">{{zmcjdata.cjname}}</view>
									<view v-else class="uni-input">{{cjArray[msgobj.wlcj].SETTB99CA00}}</view>
									<!-- <view v-else class="uni-input">{{cjArray[msgobj.wlcj].SETTB99CA00}}</view> -->
								</picker>
								<!-- <input class="addCar-input-one" type="text" placeholder="请选择厂家" v-model="msgobj.wlcj"
								maxlength="15" /> -->
							</view>
							<view class="addCar-carName-phone">
								<text class="addCar-phone">物料类型：</text>
								<picker class="addCar-input-one custom-picker" style="width:400rpx;"
									@change="bindPickerWlChange" :value="msgobj.wllx" :range="wlArray"
									range-key="settb109CA00_jg">
									<i class="addCar-phone-placeholder" v-if="msgobj.wllx<0">请选择物料</i>
									<view class="uni-input" v-if="zmcjdata.cjxs =='0'">{{zmcjdata.cjwlname}} <text
											style="padding-left:20rpx;color:red;">{{zmcjdata.cjwljg}}元</text> </view>
									<view v-if="zmcjdata.cjxs =='2'" class="uni-input">
										{{wlArray[msgobj.wllx].settb109CA00}}

										<text
											style="padding-left:20rpx;color:red;">{{wlArray[msgobj.wllx].settb109CA01}}元</text>
									</view>
								</picker>
							</view>

							<view class="addCar-carName-phone">
								<text class="addCar-phone">发单运费价：</text>
								<input class="addCar-input-one" type="digit" placeholder="请输入" v-model="msgobj.fdyf"
									maxlength="15" />
								<text>每吨</text>
							</view>
							<view class="addCar-carName-phone">
								<text class="addCar-phone">接单运费价：</text>
								<input class="addCar-input-one" type="digit" placeholder="请输入" v-model="msgobj.yf"
									maxlength="15" />
								<text>每吨</text>
							</view>

							<view class="addCar-carName-phone">
								<text class="addCar-phone">物料亏损范围：</text>
								<input class="addCar-input-one" type="digit" placeholder="请输入" v-model="msgobj.kd"
									maxlength="3" />
								<text style="padding-left: 10rpx;">吨</text>
							</view>
							<view class="addCar-carName-phone">
								<text class="addCar-phone">超时时间：</text>
								<input class="addCar-input-one" type="digit" placeholder="请输入" v-model="msgobj.cssj" />
								<text style="padding-left: 10rpx;">小时</text>
							</view>
							<view class="addCar-carName-phone">
								<text class="addCar-phone">车数：</text>
								<input class="addCar-input-one" style="width:310rpx;" type="number" placeholder="请输入车数"
									v-model="msgobj.cs" maxlength="15" />
								<text style="padding-left: 10rpx;">车</text>
							</view>
							<view class="addCar-carName-phone" v-if="userinfo.ORMTB410CB06=='1'">
								<text class="addCar-phone">管理费：</text>
								<input class="addCar-input-one" type="digit" placeholder="请输入管理费"
									v-model="msgobj.glf" />
								<text style="padding-left: 10rpx;">%</text>
							</view>
							<view class="addCar-carName-phone" style="display: flex;">
								<text class="addCar-phone">是否公开：</text>
								<text class="addCar-input-one"></text>
								<u-switch v-model="isgk" size="40" @change="change"></u-switch>

								<view class="" style="padding-left: 10rpx;">
									<text style="color: #A8A8A8;" v-if="isgk ==false">否</text>
									<text style="color: #FF0000;" v-if="isgk ==true">是</text>
								</view>

							</view>
							<view class="addCar-carName-phone" style="display: flex;">
								<text class="addCar-phone">是否指定车辆：</text>
								<text class="addCar-input-one"></text>
								<u-switch v-model="iszdcl" size="40" @change="changecl"></u-switch>
								<view class="" style="padding-left: 10rpx;">
									<text style="color: #A8A8A8;" v-if="iszdcl ==false">否</text>
									<text style="color: #FF0000;" v-if="iszdcl ==true">是</text>
								</view>
							</view>
							<view class="addCar-carName-phone" style="display: flex;">
								<text class="addCar-phone">接单物料冻结：</text>
								<text class="addCar-input-one"></text>
								<u-switch v-model="isjdwl" size="40" @change="changejdwl"></u-switch>
								<view class="" style="padding-left: 10rpx;">
									<text style="color: #A8A8A8;" v-if="isjdwl ==false">否</text>
									<text style="color: #FF0000;" v-if="isjdwl ==true">是</text>
								</view>
							</view>

							<view class="addCar-carName-phone" style="border: none;" v-if="iszdcl==true">
								<text class="addCar-phone" style="width:193rpx;">车牌号：</text>
								<!-- <input class="addCar-input-one" type="text" v-model="carNumberIpt"/> -->
								<view class="addCar-phone-car" @click="boardClick">
									{{carNumberIpt}}
									<text></text>
									<i class="addCar-phone-placeholder" v-if="carNumberIpt==''">请输入车牌号</i>
								</view>
								<text @click="carShowFun" style="color: rgba(0, 161, 244, 1);">历史车牌</text>
							</view>
							<!-- v-if="iszdcl==false" -->

							<view class="wrap" v-if="carListfb.length>0"
								style="border-top: 1px solid rgba(230, 230, 230, 0.5);">
								<view class="addCar-carName-phone" style="border: none;"
									v-for="(item, index) in carListfb">
									<!-- <input class="addCar-input-one" type="text" v-model="carNumberIpt"/> -->
									<view class="addCar-phone-car">
										{{item.carPlate}}
									</view>
									<text v-if="item.carPlate" @click="delCar(item)"
										style="color: rgba(0, 161, 244, 1);">删除</text>
								</view>
							</view>
						</view>
						<view class="text-jieshao">
							<text>{{remark}}</text>
							<!-- <view style="font-size: 20rpx; color: #D3D3D3;">确认收货后收取10元管理费！</view> -->
						</view>
						<!--  -->
						<view class="anbut-tj-fd-main">
							<view class="addCar-reset-determine">
								<!-- <view class="add-phone" @click="addItem">新增电话</view> -->
								<!-- <view class="addCar-reset" @click="reset">重置</view> -->
								<view class="addCar-determine" @click="determinefd">发布</view>
							</view>
						</view>

					</scroll-view>
				</view>


				<!-- 发单车号 -->

				<u-popup v-model="carshowfd" :negative-top="1" :mask="fdcarmask" :closeable="true" close-icon='close'
					z-index="10000" length="100%" mode="bottom" @close="carclosefd">
					<view class="" style="background: #fff;">
						<view class="" style="height: 22vh;">
							<view class="iscar-nav">
								<view class="iscar-nav-top" v-if="platform==false"></view>
								<view v-else :style="{ height: systemInfo.statusBarHeight + 'px' }"></view>
								<view class="iscar-nav-search">
									<!-- <view class="iscar-nav-search-btn" @click="carshowfd=false">
								返回
							</view> -->
									<view class="iscar-nav-search-ipt">
										<u-search placeholder="请输入车牌号" @custom="carcustomfd" @focus="focusFun"
											@blur="blurFun" @change="valChangefd" v-model="carSearchfd"
											:show-action="true" :action-style="actionStyle" action-text="添加"></u-search>
									</view>
								</view>
								<view class="iscar-nav-btn">
									<view @click="checkedAllfd" v-if="ischeckedAllfd==true">全选</view>
									<view @click="nocheckedAllfd" v-if="ischeckedAllfd==false">全不选</view>
									<view @click="determineFun">确定</view>
								</view>
							</view>
						</view>
						<!-- :style="platform==false?'padding-top: 24vh;':'padding-top: 14vh'" -->
						<scroll-view scroll-y style="height: 100%;width: 100%;">
							<view class="iscar-content" :style="{paddingTop:padingTop}">
								<view v-if="platform==true" :style="{ height: systemInfo.statusBarHeight + 'px' }">
								</view>
								<u-checkbox-group :wrap="false" width="350rpx" @change="checkboxGroupChangefd">
									<u-checkbox size='40' label-size="40" v-model="item.checked"
										v-for="(item, index) in carnumlistinit" :key="index" :name="item.name">
										{{item.name}}
									</u-checkbox>
								</u-checkbox-group>
							</view>
						</scroll-view>
					</view>
				</u-popup>
				<u-modal v-model="addCarLoginShow" content="请确认是否发布该运单" :show-cancel-button="true"
					@confirm="addCarNewConfirm">
				</u-modal>
				<u-keyboard ref="uKeyboard" mode="car" @change="carValChange" @confirm="sucAdd"
					@backspace="carBackspace" v-model="carshow1" :mask="false" :mask-close-able="false"></u-keyboard>
			</view>

		</u-popup>


		<u-keyboard ref="uKeyboard" :mask='false' mode="number" v-model="numkeyshow" @change="numkeychange"
			@backspace="numkeybackspace"></u-keyboard>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	import {
		Decimal
	} from '../../static/api/decimal.min.js'
	import {
		checkOpenGPSServiceByAndroid
	} from '../../util/map.js';
	import md5 from '../../util/MD5.js'
	export default {
		data() {
			return {
				numkeyshow: false,
				carshow: false,
				carshowsfz: false,
				carshowyd: false,
				carshowydxq: false,
				background: {
					backgroundColor: '#00a1f1',
				},
				actionStyle: {
					backgroundColor: '#00a1f1',
					color: '#FFF',
					width: '100rpx',
					height: '60rpx',
					lineHeight: '60rpx',
					borderRadius: '15rpx',
					margin: '0 20rpx',
				},
				selector: '请选择',
				way: 1,
				userinfo: JSON.parse(uni.getStorageSync('userinfo')),
				erpInfo: JSON.parse(uni.getStorageSync('erpinfo')),
				materInfo: JSON.parse(uni.getStorageSync('materInfo')),
				shaftList: '',
				shaftInfo: '',
				carnumlist: [],
				userCarnumlist: [],
				carList: [],
				carUserObj: {},
				carSearch: '',
				caruserSearch: '',
				tapClickItem: {},
				AuthorizationOBJ: '',
				shoppingCartShow: false,
				navId: '',
				ischeckedAll: true,
				systemInfo: '',
				navHeight: '',
				Erptype: '',
				tareMo: 15,
				zhValue: '',
				padlist: [{
						name: '自买自提',
						disabled: false
					},
					{
						name: '含货配送',
						disabled: false
					}

				],
				carListyw: [{
						name: '有车',
						disabled: false
					},
					{
						name: '无车',
						disabled: false
					}

				],
				value: '自买自提',
				value1: '有车',
				asaddresssInfo: '',
				zhlist: [{
						name: '本账户',
						disabled: false
					},
					{
						name: '他人账户',
						disabled: false
					}
				],
				zh: '本账户',
				typeshow: false,
				infoType: '',
				typeIndex: [0],
				msgobjzm: {
					wlcj: -1,
					wlcjName: '',
					wlcjId: '',
					wlcjdId: ''
				},
				zhArray: [],

				zhlistdata: [{
					msgobj: {
						wlcj: -1,
						wlcjName: '',
						wlcjId: '',
						wlcjdId: '',
					},
					zhArray: [],
					typeshow: false
				}],

				xzzhlistdata: [{
					msgobj: {
						wlcj: -1,
						wlcjName: '',
						wlcjId: '',
						wlcjdId: '',
					},
					zhArray: [],
					typeshow: false
				}],
				padingTop: '3vh',
				// u-radio-group的v-model绑定的值如果设置为某个radio的name，就会被默认选中

				// djTimes:'',
				platform: uni.getStorageSync('platform'),

				//运单发布
				navHeight: '',
				carSearchfd: '',
				xhdztitle: {
					ORMTB404CA00: ''
				},
				fdcarmask: false,
				xhdzqhID: 0,
				// actionStyle: {
				// 	backgroundColor: '#00a1f1',
				// 	color: '#FFF',
				// 	width: '100rpx',
				// 	height: '60rpx',
				// 	lineHeight: '60rpx',
				// 	borderRadius: '15rpx',
				// 	margin: '0 20rpx',
				// },
				carnumlistinit: [],
				carListfb: [],
				ischeckedAllfd: true,
				componeryArr: [],
				addressNew: null,
				Index: 0,
				diasabledInput: true, //可读不可写
				carNumberIpt: '', //车牌号
				nameIpt: '', //车主姓名
				phoneIpt: '', //联系方式
				tareIpt: '', //联系方式
				addCarLoginShow: false,
				carshow1: false,
				carshowfd: false,
				carType: '',
				typeid: '',
				isgk: false,
				isgkdata: 1,
				iszdcl: false,
				iszdcldata: 2,
				isjdwl: false,
				isjdwldata: 0,
				zxobj: {
					zhdz: '',
					xhdz: -1,
					xhdzName: '',
					ORMTB404ID: ''
				},
				msgobj: {
					dfzh: -1,
					wllx: -1,
					wlcj: -1,
					dfzhName: '',
					dfzhId: '',
					wlcjName: '',
					wlyhjg: '',
					wlcjId: '',
					wlcjdId: '',
					wllxName: '',
					wllxId: '',
					wllxDj: '',
					kd: '',
					glf: '',
					cs: '',
					yf: '',
					cssj: '24',
					fdyf: '',
					cjwljg: ''
				},
				remark: '',
				dfzhArray: [],
				cjArray: [],
				xhArray: [],
				wlArray: [],
				page: 1,
				list1: [{
						name: '13米',
						checked: true,
						disabled: false
					},
					{
						name: '7米6',
						checked: false,
						disabled: false
					},
					{
						name: '9米6',
						checked: false,
						disabled: false
					}

				],
				zmcjdata: {
					cjxs: 0,
					cjwlxs: 0,
					cjname: '',
					cjwlname: '',
					cjwljg: ''
				},

				styleCellGroup: {
					'fontSize': '36rpx'
				},
				cx: '13米',
				list: [{
					phone: ''
				}],
				sendObj: {},

				//收货地
				shdpop: false,
				status: 'loading',
				iconType: 'flower',
				loadText: {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '实在没有了'
				},
				countpage: 1,
				page: 1,
				vehicleArrList: [],
				vehicleLoginShow: false,
				vehicleContent: '',
				datatzym: '',
				CHECKID: '',
				xhdzObjItem: {},
				userValueobj: {},
				selectedValue: '',

			}
		},
		onLoad(option) {
			if (this.userinfo.sign == 'CUS-3') {
				this.queryAuthorization()
			}
			if (uni.getStorageSync('Erptype')) {
				this.Erptype = JSON.parse(uni.getStorageSync('Erptype'))
			}
			this.systemInfo = uni.getSystemInfoSync()
			this.navHeight = this.systemInfo.platform == 'ios' ? 44 : 48;
			this.getdfzhList()
			this.zhdataFun()
			// console.log(this.platform)
		},
		onShow() {
			uni.removeStorageSync('sendobj')
			uni.removeStorageSync('carUserObj')
			uni.removeStorageSync('obj')
			this.valChange()
			this.userValChange()
			// this.valChangefd()
			this.vehicleList();
			this.xhdzFun();
			// this.DJtimesFun()

			setTimeout(() => {
				this.msgobj.wlcj = 0
				this.msgobj.wllx = 0
				this.erpInfo.SETTB100ID
				this.zmcjdata.cjname = this.erpInfo.SETTB99CA00
				this.zmcjdata.cjwlname = this.materInfo.settb109CA00

				this.zmcjdata.cjwljg = this.materInfo.settb109CA01

				this.msgobj.wlcjName = this.erpInfo.SETTB99CA00
				this.msgobj.wlcjId = this.erpInfo.SETTB99ID
				this.msgobj.wlcjdId = this.erpInfo.SETTB100ID


				this.msgobj.wllxName = this.materInfo.settb109CA00
				this.msgobj.wlyhjg = this.materInfo.settb109CA01
				this.msgobj.wllxId = this.materInfo.settb109ID
				this.msgobj.wllxDj = this.materInfo.settb109CA01
				this.queryGwcList()


			}, 1000)

		},
		onReachBottom() {
			if (this.page == this.countpage) {
				return this.status = "nomore"
			}
			this.page++
			this.vehicleList()
		},
		computed: {
			sendTotalWeight() {
				if (this.carList.length == 0) return 0
				var weight = 0
				this.carList.forEach(item => {
					var a = new Decimal(item.ORDTB400CA07).mul(new Decimal(item.ORDTB404CA03))
					weight = new Decimal(weight).add(new Decimal(a))
				})
				weight = Number(weight.toString().match(/^\d+(?:\.\d{0,2})?/));
				return weight
			},
			sendTotalCheshu() {
				if (this.carList.length == 0) return 0
				var Cheshu = 0
				this.carList.forEach(item => {
					Cheshu = new Decimal(Cheshu).add(new Decimal(item.ORDTB404CA03))
				})
				Cheshu = Number(Cheshu.toString().match(/^\d+(?:\.\d{0,2})?/));
				return Cheshu
			},
			sendTotalMoney() {
				if (this.carList.length == 0) return 0
				var money = 0
				this.carList.forEach(item => {
					// console.log(item)
					var a = new Decimal(item.money).mul(new Decimal(item.ORDTB404CA03))
					// console.log('a' + a)
					// if(a<1500){
					// 	a=1500
					// }
					money = new Decimal(money).add(new Decimal(a))
				})
				money = Number(money.toString().match(/^\d+(?:\.\d{0,2})?/));
				// money = Number(money.toFixed(2));
				return money
			},
		},
		watch: {
			numkeyshow: function(newQuestion, oldQuestion) {
				if (newQuestion == false) {
					this.carList.forEach(item => {
						item.ORDTB404CA03 = parseInt(item.ORDTB404CA03)
						if (item.ORDTB404CA03 == 0) {
							item.ORDTB404CA03 = 1
						}
					})
				}
			}
		},
		methods: {

			clidkydpopFun() {
				this.getOrderList()
				this.getxhOrderList()
				this.getRemark()

			},


			// 代发运单账户列表
			getdfzhList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/orm/ormtb410/selectYfAccount',
					method: 'POST',
					dataType: 'json',
					data: {
						// SETTB403CA00: this.userinfo.PERTB005ID,
						// ORMTB410ID: this.userinfo.ORMTB410ID,
						// ORMTB400ID: this.userinfo.ORMTB400ID, //一级客户ID
						// SETTB99CA00: '', //二级企业名称
						// SETTB100CA04: this.cityCode, //市代码
						// page: this.page,
						// limit: 100,
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							if (!res.data.data || res.data.data == null) {
								this.dfzhArray = []
								// this.page = 1
								return
							}
							var data = res.data.data || []
							// console.log(data)
							this.dfzhArray = data
						} else {
							this.dfzhArray = []
							// this.page = 1
							uni.showToast({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},


			// 企业列表
			getOrderList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/set/settb99/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						SETTB403CA00: this.userinfo.PERTB005ID,
						ORMTB410ID: this.userinfo.ORMTB410ID,
						ORMTB400ID: this.userinfo.ORMTB400ID, //一级客户ID
						SETTB99CA00: '', //二级企业名称
						SETTB100CA04: this.cityCode, //市代码
						page: this.page,
						limit: 100,
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							if (!res.data.data || res.data.data == null) {
								this.cjArray = []
								this.page = 1
								return
							}
							var data = res.data.data || []
							// console.log(data)
							this.cjArray = data
						} else {
							this.cjArray = []
							this.page = 1
							uni.showToast({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},


			// 收货地址列表
			getxhOrderList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ORMTB400ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ORMTB400ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb404/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB400ID: ORMTB400ID,
						sign: this.userinfo.sign,
						page: this.page,
						limit: 1000,
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							if (!res.data.data || res.data.data == null) {
								this.xhArray = []
								this.page = 1
								return
							}
							var data = res.data.data || []
							// console.log(data)
							this.xhArray = data
						} else {
							this.xhArray = []
							this.page = 1
							uni.showToast({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			// 物料列表
			queryGwcList() {
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				// this.materList=[]
				var ORMTB410ID = ''
				if (this.userinfo.sign == "CUS-2" || this.userinfo.sign == 'CUS-3') {
					ORMTB410ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/selectAllSettb109',
					method: 'POST',
					dataType: 'json',
					data: {
						SETTB99ID: this.msgobj.wlcjId, //二级企业代码
						ORMTB410ID: ORMTB410ID,
						sign: this.userinfo.sign,
					},
					success: (res) => {
						// console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							// this.materList=res.data.data||[]
							this.wlArray = res.data.data || []
							// console.log(this.wlArray)

						} else {
							uni.showToast({
								title: res.data.success,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});
			},

			// DJtimesFun(){
			// 	uni.showLoading({
			// 		title: '请求中...',
			// 		mask: true
			// 	});
			// 	if (this.userinfo.sign == 'CUS-1') {
			// 		var ID = this.userinfo.ORMTB400ID
			// 	} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
			// 		var ID = this.userinfo.ORMTB410ID
			// 	}
			// 	uni.request({
			// 		url: this.baseUrl + '/orm/ormtb440/selectMP',
			// 		method: 'POST',
			// 		dataType: 'json',
			// 		data: {
			// 			ORMTB410ID: ID,
			// 		},
			// 		success: (res) => {
			// 			console.log(res);
			// 			if (res.data.code == 200) {
			// 				var data = res.data.data
			// 				console.log(data)
			// 				this.djTimes = data

			// 			} else {

			// 			}
			// 			uni.hideLoading();
			// 		},
			// 		fail: (res) => {
			// 			uni.hideLoading();
			// 			this.$refs.uToast.show({
			// 				title: res.errMsg,
			// 				type: 'default',
			// 				icon: false
			// 			})
			// 		}
			// 	});
			// },

			returnclick() {
				if (this.Erptype == 3) {
					uni.reLaunch({
						url: '/pages/priceComparison/index'
					})
				} else {
					uni.reLaunch({
						url: '/pages/SOMater/index'
					})
				}
			},
			addcarshow() {
				if (this.zh == '他人账户' && this.value == '自买自提') {
					if (this.msgobjzm.wlcj < 0) {
						this.$refs.uToast.show({
							title: '请选择账户',
							type: 'default',
							icon: false
						})
					} else {
						this.carshow = true
					}
				}
				if (this.zh == '本账户' && this.value == '自买自提') {
					this.carshow = true
				}

			},

			addcarshowsfz() {
				this.carshowsfz = true

			},
			bindPickerdfzhChange: function(e) {
				// console.log('picker发送选择改变，携带值为', e.detail.value)
				this.msgobj.dfzh = e.detail.value

				this.msgobj.dfzhName = this.dfzhArray[this.msgobj.dfzh].ZHNAME
				this.msgobj.dfzhId = this.dfzhArray[this.msgobj.dfzh].ZHID
			},

			RadioChangezp(e) {
				if (e == '自买自提' && this.zh == '本账户') {
					this.asaddresssInfo = '';
					// this.value1 = '有车';
					this.carshow = true;
					this.carshowydxq = false
				}
				if (e == '自买自提' && this.zh == '他人账户') {
					// this.asaddresssInfo = '';
					// // this.value1 = '有车';
					// this.carshow = true;
					// this.carshowydxq = false
					console.log('他人账户')
				}

				if (e == '含货配送' && this.zh == '他人账户') {
					this.carshowydxq = true;
					this.carshow = false;
					this.clidkydpopFun()
				}

				if (e == '含货配送' && this.zh == '本账户') {
					this.carshowydxq = true;
					this.carshow = false;
					this.clidkydpopFun()
				} else {

					// if (uni.getStorageSync('obj')) {
					// 	var obj = JSON.parse(uni.getStorageSync('obj'))
					// 	this.asaddresssInfo = obj.asaddresssInfo
					// }
				}
			},

			// RadioChangezpcl(e) {
			// 	if (e == '有车') {
			// 		this.asaddresssInfo = ''
			// 		this.carshow = true;
			// 	}

			// 	// else {
			// 	// 	if (uni.getStorageSync('obj')) {
			// 	// 		var obj = JSON.parse(uni.getStorageSync('obj'))
			// 	// 		this.asaddresssInfo = obj.asaddresssInfo
			// 	// 	}
			// 	// }
			// },

			radioChange(e) {
				// console.log(e);
				this.zh = e


			},
			radioGroupChange(e) {
				// console.log(e);

				if (e == '本账户' && this.value == '自买自提') {
					// this.asaddresssInfo = '';
					// this.value1 = '有车';
					this.carshow = true;
					this.carshowydxq = false
				}

				if (e == '他人账户' && this.value == '自买自提') {
					if (this.msgobjzm.wlcj < 0) {
						// this.$refs.uToast.show({
						// 	title: '请选择账户',
						// 	type: 'default',
						// 	icon: false
						// })
						console.log('他人账户')
					}
				}

				if (e == "他人账户" && this.value == '含货配送' || e == '本账户' && this.value == '含货配送') {
					this.carshowydxq = true;
					this.carshow = false;
					this.clidkydpopFun()
				}
			},
			bindPickerChange: function(e) {
				this.msgobjzm.wlcj = e.detail.value

				this.msgobjzm.wlcjName = this.zhArray[this.msgobjzm.wlcj].ORMTB510CA00
				console.log(this.msgobjzm.wlcjName)
				this.msgobjzm.wlcjId = this.zhArray[this.msgobjzm.wlcj].ORMTB510ID
			},
			// xzdataFun() {
			// 	this.zhlistdata.push({
			// 		msgobj: {
			// 			wlcj: -1,
			// 			wlcjName: '',
			// 			wlcjId: '',
			// 			wlcjdId: ''
			// 		},
			// 		zhArray: []
			// 	})
			// },
			zhdataFun(datazh) {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/selectOrmtb510',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB410ID: ID,
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {
							var data = res.data.data
							this.zhArray = data
							// console.log(this.zhArray)
							// this.zhArray = datazh.zhArray
							// this.carnumlist = []
							// data.forEach(item => {
							// 	this.carnumlist.push({
							// 		checked: false,
							// 		name: item.SETTB402CA00,
							// 		tareMo: item.ORMTB440PZ,
							// 		disabled: false,
							// 	})
							// })
						} else {

						}
						uni.hideLoading();
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});
			},
			typeOnConfirm(e) {
				this.typeIndex = [(this.typeList || []).findIndex((profile) => profile.value === e[0].value)]
				this.infoType = e[0].value
				this.rechargeType = e[0].label
				this.typeshow = false;
			},

			focusFun() {
				this.padingTop = '20vh'
			},
			blurFun() {
				this.padingTop = '3vh'
			},

			queryAuthorization() { //查询子账户权限
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/orm/ormtb417/selectAccess/' + this.userinfo.ORMTB417ID,
					method: 'GET',
					success: (res) => {
						// console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							this.AuthorizationOBJ = res.data.data
						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});
			},
			QueryShaft() { //获取轴数
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/order/v1/order105/888888',
					method: 'GET',
					success: (res) => {
						// console.log(res);
						uni.hideLoading();
						if (res.data.result == 1) {
							this.shaftList = res.data.data || []
							for (var i = 0; i < this.shaftList.length; i++) {
								if (i == 0) {
									this.shaftList[i].Class = 'buttom-active'
									this.shaftInfo = this.shaftList[i]
								} else {
									this.shaftList[i].Class = ''
								}
							}
						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});
			},
			wayClick(type) {
				this.way = type
				this.carList.forEach(item => {
					item.money = this.carmoney(item.ORDTB400CA07, item.tareMo)
					item.initCarmoney = this.initCarmoney(item.ORDTB400CA07, item.tareMo)
				})
			},
			shaftClick(e) {
				this.shaftInfo = e
				this.shaftList.forEach(item => {
					if (e.SETTB206CA00 == item.SETTB206CA00) {
						item.Class = 'buttom-active'
					} else {
						item.Class = ''
					}
				})
				this.carList.forEach(item => {
					item.ORDTB400CA07 = this.shaftInfo.SETTB206CA03 * 1
					item.money = this.carmoney(item.ORDTB400CA07, item.tareMo)
					item.initCarmoney = this.initCarmoney(item.ORDTB400CA07, item.tareMo)
				})
			},
			carcustom() {
				this.carSearch = ''
				uni.navigateTo({
					url: '/pages/vehicleAddCar/index'
				})
				// return
				// var express =
				// 	/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领])|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][0-9]{2}([0-9]|[A-Z]){5}))$/;
				// if (express.test(this.carSearch)) {
				// 	if (this.carnumlist.length > 0) {
				// 		uni.showToast({
				// 			title: '该车辆已绑定',
				// 			duration: 5000,
				// 			icon: 'none',
				// 		});
				// 		return
				// 	} else {
				// 		uni.showLoading({
				// 			title: '请求中...',
				// 			mask: true
				// 		});
				// 		if (this.userinfo.sign == 'CUS-1') {
				// 			var ID = this.userinfo.ORMTB400ID
				// 		} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
				// 			var ID = this.userinfo.ORMTB410ID
				// 		}
				// 		uni.request({
				// 			url: this.baseUrl + '/set/settb402/insert',
				// 			method: 'POST',
				// 			dataType: 'json',
				// 			data: {
				// 				SETTB402CA00: this.carSearch,
				// 				personID: ID,
				// 				sign: this.userinfo.sign
				// 			},
				// 			success: (res) => {
				// 				console.log(res);
				// 				if (res.data.code == 200) {
				// 					this.valChange()
				// 					this.carSearch = ''
				// 				} else {
				// 					this.$refs.uToast.show({
				// 						title: res.data.message,
				// 						type: 'default',
				// 						icon: false
				// 					})
				// 				}
				// 				uni.hideLoading();
				// 			},
				// 			fail: (res) => {
				// 				uni.hideLoading();
				// 				this.$refs.uToast.show({
				// 					title: res.errMsg,
				// 					type: 'default',
				// 					icon: false
				// 				})
				// 			}
				// 		});
				// 	}
				// 	this.carNumbers = this.settb119.name
				// } else {
				// 	mui.toast('')
				// 	uni.showToast({
				// 		title: '请输入有效的车牌号信息',
				// 		duration: 5000,
				// 		icon: 'none',
				// 	});
				// }
			},

			carcustomsfz() {
				this.caruserSearch = ''
				uni.navigateTo({
					url: '/pages/wallet/userMaseAdd/index'
				})
			},

			valChange() { //输入input发生变化
				this.carnumlist = []
				this.carSearch = this.carSearch.toUpperCase()
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/set/settb402/selectSettb402BySign',
					method: 'POST',
					dataType: 'json',
					data: {
						sign: this.userinfo.sign,
						SETTB402CA00: this.carSearch,
						ID: ID,
						SETTB99ID: this.erpInfo.SETTB99ID
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {
							var data = res.data.data
							this.carnumlist = []
							data.forEach(item => {
								this.carnumlist.push({
									checked: false,
									name: item.SETTB402CA00,
									tareMo: item.ORMTB440PZ,
									tareMz: item.ORMTB440MZ,
									disabled: false,
								})
							})
						} else {

						}
						uni.hideLoading();
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});

			},

			userValChange() { //输入input发生变化
				this.userCarnumlist = []
				this.caruserSearch = this.caruserSearch.toUpperCase()
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb419/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						// sign: this.userinfo.sign,
						key: this.caruserSearch,
						ORMTB410ID: ID,
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {
							var data = res.data.data.list
							this.userCarnumlist = []
							data.forEach(item => {
								this.userCarnumlist.push({
									checked: false,
									name: item.ORMTB419CA00,
									sfz: item.ORMTB419CA03,
									phone: item.ORMTB419CA01,
									disabled: false,
								})
							})
						} else {

						}
						uni.hideLoading();
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});

			},

			carclose() {
				// console.log(this.carSearch)
				if (this.carSearch) {
					this.carSearch = ''
					this.valChange()

				} else {
					this.carSearch = ''
				}
				// this.valChange()
			},
			caruserclose() {
				// console.log(this.caruserSearch)
				// 	if (this.carSearch) {
				// 		this.carSearch = ''
				// 		this.valChange()

				// 	} else {
				// 		this.carSearch = ''
				// 	}
				// this.userValueobj = {}
				this.userValChange()
				
				// this.valChange()
			},
			carcloseshAddrs() {
				this.xhdzFun()
			},
			checkboxGroupChange() {
				var arr = []
				this.carnumlist.map(val => {
					// console.log(val)
					if (val.checked == true) {
						// console.log(val.checked)
						arr.push(arr)
					}
				})
				if (arr.length == this.carnumlist.length) {
					this.ischeckedAll = false
				} else {
					this.ischeckedAll = true
				}
			},

			
			radiouserChange(evt) {
				// console.log(evt)

				for (let i = 0; i < this.userCarnumlist.length; i++) {

					if (this.userCarnumlist[i].sfz === evt.detail.value) {
						this.selectedValue = i;
						// console.log(this.userCarnumlist[this.selectedValue])
						// console.log(this.selectedValue)
						this.userValueobj = this.userCarnumlist[this.selectedValue]
						break;
					}
				}
				// console.log(this.carUserObj)
			},
			determine() {
				let zhid
				let zhname
				if (this.zh == '本账户') {
					zhid = this.userinfo.ORMTB410ID
					// console.log(zhid)
					zhname = this.userinfo.ORMTB410CA00
				}
				if (this.zh == '他人账户') {
					if (this.msgobj.wlcjName == '') {
						uni.showToast({
							title: '请选择账户',
							duration: 5000,
							icon: 'none',
						});
						return
					}
					// if(this.zhArray.length==0){
					// 	uni.showToast({
					// 		title: '暂无他人账户可用，请用本账户下单',
					// 		duration: 5000,
					// 		icon: 'none',
					// 	});
					// 	return
					// }
					// console.log(this.msgobj.wlcjName)
					// console.log(this.msgobjzm)
					zhid = this.msgobjzm.wlcjId
					zhname = this.msgobjzm.wlcjName
				}

				this.carnumlist.forEach(item => {
					if (item.checked == true) {
						var i = (this.carList || []).findIndex((profile) => profile.ORDTB400CA01 === item.name);
						if (i == '-1') {
							var money = this.carmoney(50, item.tareMo)
							var initCarmoney = this.initCarmoney(50, item.tareMo)
							// console.log(item.name)
							var carObj = {
								ORDTB400CA01: item.name, //车牌号
								ORDTB400CA07: item.tareMz, //申请重量
								ORDTB404CA03: 1, //申请车次
								tareMo: item.tareMo, //皮重
								money: money,
								ORMTB510ID: zhid, //账户ID
								zhName: zhname, //账户名称
								initCarmoney: initCarmoney
							}
							this.carList.push(carObj)
						}
					}
				})
				this.carshow = false
			},


			determinesfz() {
				// var arr = []
				// this.userCarnumlist.forEach((item, index) => {
				// 	var i = (arr || []).findIndex((profile) => profile.ORMTB419CA03 === item.sfz);
				// 	var userObj = {
				// 		ORMTB419CA00: item.name, //司机姓名
				// 		ORMTB419CA01: item.phone, //电话
				// 		ORMTB419CA03: item.sfz, //身份证号
				// 	}


				// 	// arr.push(userObj)
				// 	// this.carUserObj = userObj
				// })
				// console.log(this.carUserObj)
				this.carUserObj = this.userValueobj
				this.carshowsfz = false

			},

			checkedAll() {
				this.carnumlist.map(val => {
					val.checked = true
				})
				this.ischeckedAll = false
			},
			nocheckedAll() {
				this.carnumlist.map(val => {
					val.checked = false
				})
				this.ischeckedAll = true
			},
			carUnfinished(type) {
				if (this.value == '自买自提') {
					if (this.carList.length == 0) {
						uni.showToast({
							title: '请选择车辆自买',
							duration: 5000,
							icon: 'none',
						});
						return;
					}

					if ((this.erpInfo.SETTB99ID == '10000128' || this.erpInfo.SETTB99ID == '10000129') && Object.keys(this.carUserObj).length === 0) {

						uni.showToast({
							title: '请选择身份证',
							duration: 5000,
							icon: 'none',
						});
						return;
					}
					if ((this.erpInfo.SETTB99ID == '10000128'|| this.erpInfo.SETTB99ID == '10000129') && Object.keys(this.carUserObj).length != 0 && this.carList
						.length > 1) {
						uni.showToast({
							title: '每次只可下一车',
							duration: 5000,
							icon: 'none',
						});

						return;
					} else {
						uni.setStorageSync('carUserObj', this.carUserObj)
						this.sumbSendOrders()
					}

				}

				// else{
				// 	this.sumbSendOrders()
				// }

				// if (this.carList.length == 0) {
				// 	uni.showToast({
				// 		title: '请选择车辆',
				// 		duration: 5000,
				// 		icon: 'none',
				// 	});
				// 	return
				// }

			},
			sumbSendOrders() {
				var ORMTB400ID = ''
				var ORMTB400CA00 = ''
				var ORMTB410ID = ''
				var ORMTB410CA00 = ''
				var ORMTB440CA26 = ''
				var ORMTB440CA27 = ''
				var encryptionStr410ID
				var encryptionStr417ID
				const tim = new Date().valueOf() // 方法一

				if (this.userinfo.sign == 'CUS-1') {
					ORMTB400ID = this.userinfo.ORMTB400ID
					ORMTB400CA00 = this.userinfo.ORMTB400CA00
				} else if (this.userinfo.sign == 'CUS-2') {
					ORMTB410ID = this.userinfo.ORMTB410ID
					ORMTB410CA00 = this.userinfo.ORMTB410CA00
					ORMTB400ID = this.userinfo.ORMTB400ID
					var idTim = ORMTB410ID + tim
					encryptionStr410ID = new Buffer(idTim).toString('base64');
					// ORMTB410CA01=this.userinfo.ORMTB410CA01
				} else if (this.userinfo.sign == 'CUS-3') {
					ORMTB440CA26 = this.userinfo.ORMTB417ID
					ORMTB440CA27 = this.userinfo.PERTB005CA02
					ORMTB410CA00 = this.userinfo.ORMTB410CA00
					ORMTB400ID = this.userinfo.ORMTB400ID
					ORMTB410ID = this.userinfo.ORMTB410ID
					
					let zzhidTim = ORMTB410ID + tim
					let zidTim = ORMTB440CA26 + tim
					
					encryptionStr410ID = new Buffer(zzhidTim).toString('base64');
					encryptionStr417ID = new Buffer(zidTim).toString('base64');
				}

				var sendobj = {
					ORMTB400CA03: this.userinfo.ORMTB400CA03, //大客户代码
					ORMTB400CA00: ORMTB400CA00, //一级派单必传
					// ORMTB400CA00:ORMTB400ID,//一级派单必传
					sign: this.userinfo.sign, //CUS-1一级客户   CUS-2 二级客户
					ORMTB410ID: encryptionStr410ID, //二级客户ID（二级派单必传）
					ORMTB410CA00: ORMTB410CA00, //二级客户名称（二级派单必传）
					// ORMTB410CA00:ORMTB410CA01,//二级客户名称（二级派单必传）
					ORMTB400ID: ORMTB400ID, //二级客户名称（二级派单必传）
					ORDTB400CA08: '', //派单物料金额
					ORMTB440CA08: this.materInfo.settb109CA01, //派单物料单价
					ORMTB440CF00: '', //派单类型ZG直供LS零售QD抢单
					ORMTB440CA17: this.userinfo.PERTB005ID, //登录用户ID
					ORMTB440CA18: this.userinfo.PERTB005CA02, //登录用户名称
					ORMTB440CA21: '',
					ORMTB440CA12: '', //派单运费
					ORMTB440CA13: '', //配送地ID
					ORMTB440CA14: '', //配送地名称
					ORMTB440CA15: '', //工地ID
					ORMTB440CA16: '', //工地名称
					SETTB400CA02: '', //优惠方式
					SETTB400CA06: '', //客户等级优惠
					ORMTB440CA23: this.erpInfo.SETTB100ID, //一级企业ID
					ORMTB440CA24: this.erpInfo.SETTB99CA00, //一级企业名称
					ORDTB400CA04: this.materInfo.settb109ID, //物料ID
					ORMTB440CA07: this.materInfo.settb109CA00, //物料名称
					ORDTB400CA09: this.erpInfo.SETTB99ID, //二级企业代码
					ORMTB440CA05: this.erpInfo.SETTB99CA00, //二级名称
					ORMTB440CA26: encryptionStr417ID, //子账号id
					ORMTB440CA27: ORMTB440CA27, //子账号名称
					SETTB109CB09: this.materInfo.settb109CB09, //是否开启副账号扣款，0不开启，1开启
					ORDTB400CA06: this.way, //派单方式（0净重，1毛重）
					carList: this.carList
				}
				var str = JSON.stringify(sendobj)
				uni.setStorageSync('sendobj', str);
				uni.navigateTo({
					url: '/pages/SOsubmit/index'
				})
			},
			cardelete(item) {
				var i = (this.carList || []).findIndex((profile) => profile.ORDTB400CA01 === item.ORDTB400CA01);
				this.carList.splice(i, 1)
				var j = (this.carnumlist || []).findIndex((profile) => profile.name === item.ORDTB400CA01);
				this.carnumlist[j].checked = false
			},
			Reduction(item, numtype, type) {
				var i = (this.carList || []).findIndex((profile) => profile.ORDTB400CA01 === item.ORDTB400CA01);
				if (type == 'weight') {
					if (this.carList[i].ORDTB400CA07 == 0) return
					this.carList[i].ORDTB400CA07 = new Decimal(this.carList[i].ORDTB400CA07).sub(new Decimal(1))
					this.carList[i].ORDTB400CA07 = Number(this.carList[i].ORDTB400CA07.toString().match(
						/^\d+(?:\.\d{0,2})?/));
					this.carList[i].money = this.carmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
					this.carList[i].initCarmoney = this.initCarmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
				} else {
					if (this.carList[i].ORDTB404CA03 == 1) return
					this.carList[i].ORDTB404CA03 = new Decimal(this.carList[i].ORDTB404CA03).sub(new Decimal(1))
					this.carList[i].ORDTB404CA03 = Number(this.carList[i].ORDTB404CA03.toString().match(
						/^\d+(?:\.\d{0,2})?/));
				}
			},
			add(item, numtype, type) {
				var i = (this.carList || []).findIndex((profile) => profile.ORDTB400CA01 === item.ORDTB400CA01);
				if (type == 'weight') {
					this.carList[i].ORDTB400CA07 = new Decimal(this.carList[i].ORDTB400CA07).add(new Decimal(1))
					this.carList[i].money = this.carmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
					this.carList[i].initCarmoney = this.initCarmoney(this.carList[i].ORDTB400CA07, this.carList[i].tareMo)
					this.carList[i].ORDTB400CA07 = Number(this.carList[i].ORDTB400CA07.toString().match(
						/^\d+(?:\.\d{0,2})?/));
				} else {
					this.carList[i].ORDTB404CA03 = new Decimal(this.carList[i].ORDTB404CA03).add(new Decimal(1))
					this.carList[i].ORDTB404CA03 = Number(this.carList[i].ORDTB404CA03.toString().match(
						/^\d+(?:\.\d{0,2})?/));
					if (this.carList[i].ORDTB404CA03 > 9999) return this.carList[i].ORDTB404CA03 = 9999
				}
			},
			numtap(item, numtype, type) {
				this.numkeyshow = true
				this.tapClickItem.item = item
				this.tapClickItem.numtype = numtype
				this.tapClickItem.type = type
			},
			numkeychange(e) {
				var j = (this.carList || []).findIndex((profile) => profile.ORDTB400CA01 === this.tapClickItem.item
					.ORDTB400CA01);
				if (this.tapClickItem.numtype == "whole") {
					if (e == '.') return
					if (this.tapClickItem.type == 'time') {
						if (this.carList[j].ORDTB404CA03 == '' && e == 0) return
						this.carList[j].ORDTB404CA03 = this.carList[j].ORDTB404CA03 + '' + e
						if (this.carList[j].ORDTB404CA03.indexOf(".") < 0 && num !=
							"") { //以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
							this.carList[j].ORDTB404CA03 = parseFloat(this.carList[j].ORDTB404CA03)
						}
						if (this.carList[j].ORDTB404CA03 > 9999) return this.carList[j].ORDTB404CA03 = 9999
					}
				} else {
					if (this.tapClickItem.type == 'weight') {
						var num = String(this.carList[j].ORDTB400CA07)
						num = num + e
						num = num.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符
						num = num.replace(/^\./g, "1"); //验证第一个字符是数字
						num = num.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
						num = num.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
						num = num.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
						if (num.indexOf(".") < 0 && num != "") { //以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
							num = parseFloat(num)
						}
						num = String(num)
						if (num.indexOf(".") > 0) {
							var arr = num.split('.')
							if (arr[1].length > 1) {
								num = Number(num.toString().match(/^\d+(?:\.\d{0,2})?/));
							}
						}
						this.carList[j].money = this.carmoney(num, this.carList[j].tareMo)
						this.carList[j].initCarmoney = this.initCarmoney(num, this.carList[j].tareMo)
						this.carList[j].ORDTB400CA07 = 1
						this.$nextTick(function() {
							this.carList[j].ORDTB400CA07 = num
						})
					}
				}
			},
			numkeybackspace() {
				var j = (this.carList || []).findIndex((profile) => profile.ORDTB400CA01 === this.tapClickItem.item
					.ORDTB400CA01);
				var num
				if (this.tapClickItem.type == "weight") {
					num = String(this.carList[j].ORDTB400CA07)
					this.carList[j].ORDTB400CA07 = num.substr(0, num.length - 1)
					if (this.carList[j].ORDTB400CA07 == '') {
						this.carList[j].ORDTB400CA07 = 0
						this.carList[j].money = this.carmoney(this.carList[j].ORDTB400CA07, this.carList[j].tareMo)
						this.carList[j].initCarmoney = this.initCarmoney(this.carList[j].ORDTB400CA07, this.carList[j]
							.tareMo)
						return
					}
					this.carList[j].money = this.carmoney(this.carList[j].ORDTB400CA07, this.carList[j].tareMo)
					this.carList[j].initCarmoney = this.initCarmoney(this.carList[j].ORDTB400CA07, this.carList[j].tareMo)
				} else {
					num = String(this.carList[j].ORDTB404CA03)
					this.carList[j].ORDTB404CA03 = num.substr(0, num.length - 1)
					if (this.carList[j].ORDTB404CA03 == '') return this.carList[j].ORDTB404CA03 = 0
				}
			},
			carmoney(weight, tareMo) {
				if (this.way == 1) {
					var Jweigth = new Decimal(weight).sub(new Decimal(tareMo))
					// if (Jweigth < 20) {
					// 	Jweigth = 20
					// }
					var money = new Decimal(Jweigth).mul(new Decimal(this.materInfo.settb109CA01))

				} else {
					var money = new Decimal(weight).mul(new Decimal(this.materInfo.settb109CA01))
				}

				money = Number(money.toString().match(/^\d+(?:\.\d{0,2})?/));
				money = Number(money.toFixed(2));
				// console.log(money)
				return money
			},
			initCarmoney(weight, tareMo) {
				if (this.way == 1) {
					var Jweigth = new Decimal(weight).sub(new Decimal(tareMo))
					// if (Jweigth < 20) {
					// 	Jweigth = 20
					// }
					var money = new Decimal(Jweigth).mul(new Decimal(this.materInfo.settb109CA01_ys))
				} else {
					var money = new Decimal(weight).mul(new Decimal(this.materInfo.settb109CA01_ys))
				}
				// console.log(money)
				money = Number(money.toString().match(/^\d+(?:\.\d{0,2})?/));
				// console.log(money)
				return money
			},


			// 运单发布

			carcustomfd() {
				this.carSearchfd = ''
				uni.navigateTo({
					url: '/pages/vehicleAddCar/index'
				})
			},

			bindPickercjChange: function(e) {
				// console.log('picker发送选择改变，携带值为', e.detail.value)
				this.msgobj.wlcj = e.detail.value


				this.zmcjdata.cjxs = 1
				this.zmcjdata.cjwlname = ''
				this.msgobj.wlcjName = this.cjArray[this.msgobj.wlcj].SETTB99CA00
				this.msgobj.wlcjId = this.cjArray[this.msgobj.wlcj].SETTB99ID
				this.msgobj.wlcjdId = this.cjArray[this.msgobj.wlcj].SETTB100ID
				this.queryGwcList()
				this.msgobj.wllx = -1



			},
			bindxhPickerChange: function(e) {
				// console.log(this.xhArray)

				if (this.xhArray.length == 0) {
					uni.showToast({
						title: '请先添加收货地',
						type: 'default',
						icon: 'none'
					})

				} else {
					this.zxobj.xhdz = e.detail.value
					this.zxobj.xhdzName = this.xhArray[this.zxobj.xhdz].ORMTB404CA00
					this.zxobj.ORMTB404ID = this.xhArray[this.zxobj.xhdz].ORMTB404ID
				}


			},
			bindPickerWlChange(e) {

				this.msgobj.wllx = e.detail.value
				// console.log('物料', this.msgobj.wllx)
				this.msgobj.wllxName = this.wlArray[this.msgobj.wllx].settb109CA00
				// this.msgobj.cjwljg = this.wlArray[this.msgobj.wllx].settb109CA01
				this.msgobj.wllxId = this.wlArray[this.msgobj.wllx].settb109ID
				this.msgobj.wllxDj = this.wlArray[this.msgobj.wllx].settb109CA01
				// console.log(this.wlArray[this.msgobj.wllx].settb109ID)
				this.zmcjdata.cjxs = 2

			},

			// 选中某个单选框时，由radio时触发
			radiocxChange(e) {
				// console.log(e);
			},
			radiocxGroupChange(e) {
				// console.log(e);
			},
			change(e) {
				// console.log('change', e);
				this.isgk = e
				if (this.isgk == true) {
					this.isgkdata = 2
				} else {
					this.isgkdata = 1
				}
				// console.log(this.isgkdata)
			},
			changecl(e) {
				// console.log('change', e);
				this.iszdcl = e
				if (this.iszdcl == true) {
					this.valChangefd()
					this.iszdcldata = 1

				} else {
					this.iszdcldata = 2
					this.carList = []
					// const resultArray = this.carList.filter(item => !this.carnumlist.includes(item));

					this.carnumlist.forEach(function(element) {
						element.checked = false
					});
				}
				// console.log(this.iszdcldata)
			},
			changejdwl(e) {
				// console.log('change', e);
				this.isjdwl = e
				if (this.isjdwl == true) {
					this.isjdwldata = 1
				} else {
					this.isjdwldata = 0
				}
				// console.log(this.isjdwldata)

			},

			// 企业列表
			getOrderList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/set/settb99/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						SETTB403CA00: this.userinfo.PERTB005ID,
						ORMTB410ID: this.userinfo.ORMTB410ID,
						ORMTB400ID: this.userinfo.ORMTB400ID, //一级客户ID
						SETTB99CA00: '', //二级企业名称
						SETTB100CA04: this.cityCode, //市代码
						page: this.page,
						limit: 100,
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							if (!res.data.data || res.data.data == null) {
								this.cjArray = []
								this.page = 1
								return
							}
							var data = res.data.data || []
							// console.log(data)
							this.cjArray = data
						} else {
							this.cjArray = []
							this.page = 1
							uni.showToast({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},

			handClickSelectAddress(item) {

				if (Object.keys(item).length > 0) {
					// const item = JSON.parse(decodeURIComponent(op.data));
					// // console.log(op)
					// // console.log(item)
					// this.xhdzqhID = item.ORMTB404ID
					this.xhdztitle = item
					// console.log(this.xhdztitle, 'xhdztitle')
				}
			},

			xhdlistFun() {
				this.shdpop = true;
				this.CHECKID = this.xhdztitle.ORMTB404ID
				this.datatzym = this.xhdztitle
				this.vehicleList();
				// return;
				// console.log(this.xhdztitle.ORMTB404CA00)
				// if (this.xhdztitle.ORMTB404CA00) {
				// 	uni.navigateTo({
				// 		url: "/pages/deliveryPlace/index?ID=" + this.xhdztitle.ORMTB404ID
				// 	})
				// } else {
				// 	uni.navigateTo({
				// 		url: "/pages/deliveryPlace/index"
				// 	})
				// }


			},

			getRemark() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/orm/ormtb460/getRemark',
					method: 'POST',
					dataType: 'json',
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							var data = res.data.data || []
							// console.log(data)
							this.remark = res.data.data
							// console.log(res)
						} else {
							uni.showToast({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},

			// 收货地址列表
			getxhOrderList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ORMTB400ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ORMTB400ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb404/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB400ID: ORMTB400ID,
						sign: this.userinfo.sign,
						page: this.page,
						limit: 1000,
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							if (!res.data.data || res.data.data == null) {
								this.xhArray = []
								this.page = 1
								return
							}
							var data = res.data.data || []
							// console.log(data)
							this.xhArray = data
						} else {
							this.xhArray = []
							this.page = 1
							uni.showToast({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			// 物料列表
			queryGwcList() {
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				// this.materList=[]
				var ORMTB410ID = ''
				if (this.userinfo.sign == "CUS-2" || this.userinfo.sign == 'CUS-3') {
					ORMTB410ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/selectAllSettb109',
					method: 'POST',
					dataType: 'json',
					data: {
						SETTB99ID: this.msgobj.wlcjId, //二级企业代码
						ORMTB410ID: ORMTB410ID,
						sign: this.userinfo.sign,
					},
					success: (res) => {
						// console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							// this.materList=res.data.data||[]
							this.wlArray = res.data.data || []
							// console.log(this.wlArray)

						} else {
							uni.showToast({
								title: res.data.success,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});
			},


			addItem() {
				if (this.list.length == 3) {
					uni.showToast({
						title: '最多三个',
						icon: 'none'
					})
					return false
				}
				// let add = {
				// 	id: parseInt(this.id) + 1
				// }
				this.list.push({
					phone: ''
				})
				// this.id = parseInt(this.id) + 1
				// this.phoneIpt += parseInt(this.id) + 1
				// console.log(this.list)
			},
			// delItem(item) {
			// 	if (this.list.length == 1) {
			// 		uni.showToast({
			// 			title: '不能删除第1个',
			// 			icon: 'none'
			// 		})
			// 		return false;
			// 	}
			// 	this.list = this.list.filter((i) => {
			// 		return i != item
			// 	})
			// },
			carValChange(val) {
				// 将每次按键的值拼接到carNumberIpt变量中，注意+=写法
				this.carNumberIpt += val;
			},
			carBackspace() {
				// 删除carNumberIpt的最后一个字符
				if (this.carNumberIpt.length) this.carNumberIpt = this.carNumberIpt.substr(0, this.carNumberIpt.length -
					1);
			},
			delCar(item) {
				// this.carList = this.carList.filter((i) => {
				// 	return i != item
				// })
				// console.log(item)
				var i = (this.carListfb || []).findIndex((profile) => profile.carPlate === item.carPlate);
				this.carListfb.splice(i, 1)
				var j = (this.carnumlistinit || []).findIndex((profile) => profile.name === item.carPlate);
				// console.log(this.carnumlist[j])


				if (this.carnumlistinit[j]) return this.carnumlistinit[j].checked = false


			},
			boardClick() {
				this.carshow1 = true
			},
			carShowFun() {
				this.carshowfd = true
				// this.valChange()
			},
			checkedAllfd() {
				this.carnumlistinit.map(val => {
					val.checked = true
				})
				this.ischeckedAll = false
			},
			nocheckedAllfd() {
				this.carnumlistinit.map(val => {
					val.checked = false
				})
				this.ischeckedAll = true
			},
			determineFun() {
				this.carnumlistinit.forEach(item => {
					if (item.checked == true) {
						var i = (this.carListfb || []).findIndex((profile) => profile.carPlate === item.name);
						if (i == '-1') {
							// console.log(item.name)
							var carObj = {
								carPlate: item.name, //车牌号
							}
							this.carListfb.push(carObj)
							// console.log(this.carListfb)
						}
					}
				})
				this.carshowfd = false
			},
			sucAdd(e) {
				// console.log(this.carNumberIpt)
				//车牌号
				var regC =
					/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领])|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][0-9]{2}([0-9]|[A-Z]){5}))$/;
				// var regP = /^1[3-9][0-9]{9}$/;



				if (!regC.test(this.carNumberIpt)) return uni.showToast({
					title: '车牌号格式不正确，请检查',
					duration: 5000,
					icon: 'none',
				});
				else {
					this.carListfb.push({
						// checked: false,
						carPlate: this.carNumberIpt
					})
					// console.log(this.carListfb)
					this.carNumberIpt = ''
				}



			},
			carclosefd() {
				if (this.carSearchfd) {
					this.carSearchfd = ''
					this.valChangefd()
				} else {
					this.carSearchfd = ''
				}

			},
			carclosefdxq() {

			},
			checkboxGroupChangefd() {
				var arr = []
				this.carnumlistinit.map(val => {
					if (val.checked == true) {
						arr.push(arr)
					}
				})
				if (arr.lenth == this.carnumlistinit.length) {
					this.ischeckedAllfd = false
				} else {
					this.ischeckedAllfd = true
				}
			},
			xhdzFun() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb404/selectDefault',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB410ID: ID,
						ORMTB404ID: this.xhdztitle.ORMTB404ID
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {

							if (!res.data.data) {
								// console.log('111')
								this.xhdztitle = {}
							} else {
								this.xhdztitle = res.data.data
							}

						} else {
							uni.showToast({
								title: res.errMsg,
								type: 'default',
								icon: false
							})
						}
						uni.hideLoading();
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});
			},
			valChangefd() { //输入input发生变化
				this.carnumlistinit = []
				this.carSearchfd = this.carSearchfd.toUpperCase()
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				if (this.userinfo.sign == 'CUS-1') {
					var ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/set/settb402/selectSettb402BySign',
					method: 'POST',
					dataType: 'json',
					data: {
						sign: this.userinfo.sign,
						SETTB402CA00: this.carSearchfd,
						ID: ID
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {
							var data = res.data.data
							this.carnumlistinit = []
							data.forEach(item => {
								this.carnumlistinit.push({
									checked: false,
									name: item.SETTB402CA00,
									disabled: false,
								})
							})
						} else {

						}
						uni.hideLoading();
					},
					fail: (res) => {
						uni.hideLoading();
						uni.showToast({
							title: res.errMsg,
							type: 'default',
							icon: false
						})
					}
				});

			},
			tareIptInput() { //限制验证码长度
				if (this.tareIpt.length > 6) {
					this.tareIpt = this.tareIpt.slice(0, 6)
				}
			},
			phoneIptInput() {
				if (this.phoneIpt.length > 11) {
					this.phoneIpt = this.phoneIpt.slice(0, 11)
				}
			},
			// 确定
			determinefd() {

				if (!this.xhdztitle) {
					return uni.showToast({
						title: '请选择收货地',
						duration: 5000,
						icon: 'none',
					});
				}

				if (this.xhdztitle.ORMTB404CA00 == '') {
					return uni.showToast({
						title: '请选择收货地',
						duration: 5000,
						icon: 'none',
					});
				}
				if (this.msgobj.wlcj == -1) {
					return uni.showToast({
						title: '请选择厂家',
						duration: 5000,
						icon: 'none',
					});
				}
				if (this.msgobj.wllx == -1) {
					return uni.showToast({
						title: '请选择物料',
						duration: 5000,
						icon: 'none',
					});
				}
				// if (this.iszdcl == false) {
				if (this.msgobj.cs == '') {
					return uni.showToast({
						title: '请输入车数',
						duration: 5000,
						icon: 'none',
					});
				}
				// }

				if (this.msgobj.fdyf == '') {
					return uni.showToast({
						title: '请输入发单运费价',
						duration: 5000,
						icon: 'none',
					});
				}
				if (this.msgobj.yf == '') {
					return uni.showToast({
						title: '请输入接单运费价',
						duration: 5000,
						icon: 'none',
					});
				}


				if (this.msgobj.kd == '') {
					return uni.showToast({
						title: '请输入所承担的亏吨范围',
						duration: 5000,
						icon: 'none',
					});
				}
				if (this.msgobj.cssj == '') {
					return uni.showToast({
						title: '请输入超时自动取消时间',
						duration: 5000,
						icon: 'none',
					});
				}
				if (this.iszdcl == true) {
					if (this.carListfb.length == 0) {
						return uni.showToast({
							title: '选择车辆',
							duration: 5000,
							icon: 'none',
						});
					}
				}


				if (Number(this.msgobj.fdyf) < Number(this.msgobj.yf)) {

					return uni.showToast({
						title: '发单运费价必须大于等于接单运费价',
						duration: 5000,
						icon: 'none',
					});
				}


				this.addCarLoginShow = true

			},

			addCarNewConfirm() {
				if (this.userinfo.sign == 'CUS-1') {
					var ORMTB400ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ORMTB400ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb460/createFreight',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB460CA00: this.zxobj.zhdz, //装货地址
						ORMTB460CA01: this.xhdztitle.ORMTB404CA00, //卸货地址
						ORMTB460CA02: this.cx, //车型
						ORMTBZS410ID: this.msgobj.dfzhId, //代发账户ID
						ORMTB460CA34: this.msgobj.glf, //管理费比例
						ORMTB460CA03: this.msgobj.wlcjId, //厂家ID
						ORMTB460CA14: this.msgobj.wlcjdId, //厂家短ID
						ORMTB460CA04: this.msgobj.wlcjName, //厂家名称
						ORMTB460CA05: this.msgobj.wllxId, //物料ID
						ORMTB460CA06: this.msgobj.wllxName, //物料名称
						ORMTB460CA07: this.msgobj.wllxDj, //物料单价
						ORMTB460CA08: this.msgobj.cs, //车数
						ORMTB460CA09: this.msgobj.yf, //接单运费单价
						ORMTB460CA26: this.msgobj.fdyf, //发单运费单价
						ORMTB460CA25: this.msgobj.kd, //亏吨范围
						ORMTB460CA20: this.xhdztitle.ORMTB404ID, //地址ID
						ORMTB460CA27: this.msgobj.cssj, //超时自动取消时间
						ORMTB460CA30: this.iszdcldata, //是否指定车牌
						ORMTB460CA31: this.isgkdata, //是否公开
						ORMTB460CA32: this.isjdwldata, //是否冻结接单物料
						ormtb461List: this.carListfb, //指定车牌号
						// sign: this.userinfo.sign,
						ORMTB410ID: ORMTB400ID,
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {
							uni.showToast({
								title: '发布成功',
								duration: 5000,
								icon: 'none',
							});
							uni.navigateBack()
						} else {
							uni.showToast({
								title: res.data.message,
								duration: 5000,
								icon: 'none',
							});
						}
					},
					fail: (res) => {
						uni.showToast({
							title: res.data.message,
							duration: 5000,
							icon: 'none',
						});
					}
				});
			},


			// 收货地址
			getopsxinxi(item) {
				// console.log(item)
				checkOpenGPSServiceByAndroid()
				uni.getLocation({
					type: 'gcj02', //返回可以用于uni.openLocation的经纬度
					success: function(res) {
						// console.log(res)
						const latitude = item.ORMTB404CA07;
						const longitude = item.ORMTB404CA06;
						uni.openLocation({
							latitude: latitude,
							longitude: longitude,
							scale: 10,
							name: item.ORMTB404CA00,
							address: item.ORMTB404CA05,
							success: function() {
								console.log('success');
							}
						});
					}
				});
			},

			xhdxzFun(item) {
				// console.log(item)
				this.xhdztitle = item;
				this.shdpop = false;
				// if (this.datatzym == 'home') {
				// 	console.log('首页进入')
				// } else {
				// 	uni.$emit('handClickSelectAddress', item)
				// 	uni.navigateBack({
				// 		url: '/pages/msgFb/index'
				// 	});
				// }
			},

			// 删除
			vehicleConfirm() {
				uni.request({
					url: this.baseUrl + '/orm/ormtb404/delete',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB404ID: this.vehicleid,
						sign: this.userinfo.sign,
					},
					success: (res) => {
						// console.log(res);
						if (res.data.code == 200) {
							this.$refs.uToast.show({
								title: '删除成功',
								type: 'default',
								icon: false
							})
							if (this.vehicleid == this.CHECKID) {
								this.CHECKID = ''
							}
							this.vehicleid = ''
							this.page = 1
							this.countpage = 1
							this.vehicleList();
						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.showToast({
							title: res.data.message,
							duration: 5000,
							icon: 'none',
						});
					}
				});
			},
			prohibit(item) {
				this.vehicleLoginShow = true
				this.vehicleid = item.ORMTB404ID
				this.vehicleContent = '您确定要删除配送地：' + item.ORMTB404CA00 + '吗？'
			},
			modify(item) {
				uni.navigateTo({
					url: '../deliveryPlaceModify/index?item=' + JSON.stringify(item)
				})
			},
			addDeliverySite(item) {
				uni.setStorageSync('id', item.ORMTB404ID);
				uni.setStorageSync('freightDP', item.ORMTB404CA01);
				uni.navigateTo({
					url: '../deliverySite/index'
				})
			},
			//添加
			addCar() {
				uni.navigateTo({
					url: '../deliveryPlaceAdd/index'
				})
			},
			vehicleList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				this.status = "loading"
				if (this.userinfo.sign == 'CUS-1') {
					var ORMTB400ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ORMTB400ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb404/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB400ID: ORMTB400ID,
						sign: this.userinfo.sign,
						CHECKID: this.CHECKID,
						page: this.page,
						limit: 10,
					},
					success: (res) => {
						uni.hideLoading();
						// console.log(res);
						if (res.data.code == 200) {
							if (!res.data.data || res.data.data == null) {
								this.vehicleArrList = []
								this.page = 1
								this.countpage = 1
								return
							}
							var data = res.data.data || []
							if (this.page > 1) {
								this.vehicleArrList = [...this.vehicleArrList, ...data]
							} else {
								this.vehicleArrList = data
							}
							this.countpage = Math.ceil(res.data.count / 10)
						} else {
							this.vehicleArrList = []
							this.page = 1
							this.countpage = 1
							uni.showToast({
								title: res.data.message,
								duration: 5000,
								icon: 'none',
							});
						}
						if (this.countpage == this.page) {
							this.status = "nomore"
						} else {
							this.status = "loadmore"
						}
					},
					fail: (res) => {
						if (this.countpage == this.page) {
							this.status = "nomore"
						} else {
							this.status = "loadmore"
						}
						uni.hideLoading();
						uni.showToast({
							title: res.data.message,
							duration: 5000,
							icon: 'none',
						});
					}
				});
			}

		}
	}
</script>

<style scoped>
	.sendcar {
		width: 100vw;
		min-height: 100vh;
		background-color: #e3e3e3;
	}

	.sendcar-top {
		display: flex;
		border-bottom: 2rpx solid #e3e3e3;
		padding-bottom: 10rpx;
		padding-top: 10rpx;
		background-color: #fff;
	}

	.sendcar-top-way {
		margin-left: 40rpx;
	}

	.sendcar-top-way button {
		display: inline-block;
		height: 50rpx;
		width: 100rpx;
		line-height: 50rpx;
		font-size: 38rpx;
		border: none;
		background-color: #e3e3e3;
		color: #fff;
		padding: 0;
		margin-top: 40rpx;
		margin-left: 30rpx;
	}

	.sendcar-top-way .buttom-active {
		background-color: #02a2f4;
	}

	.sendcar-top-shaft {
		flex: 1;
	}

	.sendcar-top-shaft button {
		display: inline-block;
		height: 40rpx;
		width: 70rpx;
		line-height: 40rpx;
		font-size: 24rpx;
		border: 1rpx solid #e3e3e3;
		background-color: #fff;
		color: #666;
		padding: 0;
		margin-top: 45rpx;
		margin-left: 40rpx;
	}

	.sendcar-top-shaft .buttom-active {
		border: 2rpx solid #02a2f4;
		color: #02a2f4;
	}

	.sendcar-top-shaft button+button {
		margin-left: 20rpx;
	}

	.sendcar-li {
		padding: 30rpx 20rpx;
		background-color: #fff;
	}

	.sendcar-li-top {
		display: flex;
		justify-content: space-between;
		color: #333;
		font-size: 40rpx;
		font-weight: 600;
	}

	.sendcar-li-top-active {
		background-color: rgba(255, 88, 88, .6);
	}

	.sendcar-li-top .iconyichu {
		color: #999;
		margin-right: 30rpx;
		font-size: 36rpx;
	}

	.sendcar-li-content {
		display: flex;
		justify-content: space-between;
		margin-top: 30rpx;
	}

	.SLCW-operation {
		display: inline-block;
		width: 40rpx;
		height: 40rpx;
		line-height: 40rpx;
		border-radius: 50%;
		font-size: 36rpx;
		background-color: #999;
		color: #fff;
		text-align: center;
		vertical-align: middle;
	}

	.SLCW-ipt {
		display: inline-block;
		width: 130rpx;
		height: 60rpx;
		line-height: 60rpx;
		text-align: center;
		font-size: 32rpx;
		border: 2rpx solid rgba(0, 212, 254, .7);
		border-radius: 5rpx;
		margin: 0 15rpx;
		overflow: hidden;
		vertical-align: middle;
	}

	.sendcar-li-content-number label {
		margin-left: 10rpx;
	}

	.iscar-nav {
		position: fixed;
		top: 0;
		width: 100%;
		/* height: 22vh; */
		/* box-sizing: border-box; */
		z-index: 2;
		background-color: #FFF;
	}

	.iscar-content {
		/* margin-top: 24vh; */
		/* padding-top: 20rpx; */
		padding-bottom: 20rpx;
	}

	.iscar-nav-top {
		height: 10vh;
		/* background-color: #e3e3e3; */
	}

	.iscar-nav-search {
		display: flex;
		/* background-color: #e3e3e3; */
		padding-bottom: 20rpx;
		padding-top: 104rpx;
	}

	.iscar-nav-search-ipt {
		flex: 1;
	}

	.iscar-nav-search-btn {
		width: 100rpx;
		height: 60rpx;
		line-height: 60rpx;
		/* font-size: 28rpx; */
		text-align: center;
		color: #333;
		margin: 0 20rpx;
	}

	.iscar-nav-btn {
		display: flex;
		justify-content: space-between;
		height: 90rpx;
		line-height: 90rpx;
		font-size: 36rpx;
		color: #333;
		padding: 0 40rpx;
		border-top: 2rpx solid #e3e3e3;
		border-bottom: 2rpx solid #e3e3e3;
		background-color: #fff;
	}

	.iscar-nav-btn view+view {
		color: #02a2f4;
	}

	.iscar-nav-btn view {
		/* width: 100rpx; */
		text-align: center;
	}

	.iscar-content {
		padding-left: 30rpx;
	}

	.sendcar-addcar {
		padding: 20rpx 40rpx;
		color: #02a2f4;
		font-size: 38rpx;
		/* background-color: #fff; */
	}

	.sendcar-bottom-height {
		height: 120rpx;
	}

	.sendcar-bottome-nav {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		display: flex;
		/* height: 120rpx; */
		overflow: hidden;
		box-sizing: border-box;
		z-index: 2;
		background-color: #fff;
		padding: 10rpx 0;
	}

	.sendcar-bottome-nav-l {
		flex: 1;
		text-align: right;
		padding-right: 20rpx;
		margin-top: 20rpx;
	}

	.sendcar-bottome-nav-l-t {
		height: 40rpx;
		font-size: 36rpx;
		color: #333;
		overflow: hidden;
	}

	.sendcar-bottome-nav-l-b {
		/* height: 40rpx; */
		overflow: hidden;
		/* font-size: 24rpx; */
		color: #999;
	}

	.sendcar-bottome-nav-l-b text {
		margin-right: 10rpx;
	}

	.sendcar-bottome-nav-r>button {
		display: inline-block;
		height: 120rpx;
		line-height: 120rpx;
		color: #FFF;
		background-color: #02a2f4;
		/* background-color: #e5c000; */
		font-size: 32rpx;
	}

	.sendcar-bottome-nav-r>button+button {
		background-color: #02a2f4;
		margin-left: 5rpx;
	}

	.xd-main {
		/* margin-bottom: 20rpx; */
		background-color: #FFF;
		border-radius: 20rpx;
		margin-left: 10rpx;
		margin-right: 10rpx;
		margin-top: 10rpx;
	}

	.sendSubmitOrder-sal-type {
		display: flex;
		background-color: #FFF;
	}

	.sendSubmitOrder-sal-type-text {
		height: 90rpx;
		line-height: 90rpx;
		padding: 0 10rpx 0 20rpx;
	}

	.sendSubmitOrder-sal-type-radio {
		margin-left: 40rpx;
		padding-top: 15rpx;
	}

	.font-name-user {
		font-size: 36rpx;
	}
</style>


<style>
	.addCar input {
		border: 0;
	}

	.addCar {
		width: 100%;
		min-height: 100vh;
		background-color: rgba(242, 242, 242, 1);
		overflow: hidden;
		position: relative;
	}

	/* 列表 */

	/* 内容 */
	.addCar-content-box {
		/* width: 100%; */
		background: rgba(255, 255, 255, 1);
		padding: 10rpx 24rpx;
		margin: 10rpx;
		border-radius: 20rpx;
		box-shadow: 4rpx 4rpx 20rpx #e5e5e5;
		margin-top: 210rpx;
	}

	.addCar-carName-phone {
		border-bottom: 2rpx solid rgba(230, 230, 230, 0.5);
		padding: 18rpx 0;
		/* font-size: 36rpx; */
	}

	.addCar-input-one {
		width: 310rpx;
		display: inline-block;
		margin-bottom: 0 !important;
		padding: 0 !important;
		height: 44rpx !important;
		vertical-align: middle;
		/* margin-left: 0.1rem; */
		color: rgba(51, 51, 51, 1);
		font-size: 32rpx;
		text-align: center;
	}

	.addCar-phone {
		width: 228rpx;
		display: inline-block;
		font-size: 32rpx;
		color: rgba(102, 102, 102, 1);
		vertical-align: middle;
		/* background: #000000; */
	}

	.addCar-phone-placeholder {
		font-size: 30rpx;
		color: rgba(102, 102, 102, .5);
	}

	.addCar-dun {
		color: rgba(51, 51, 51, 1);
		font-size: 30rpx;
	}

	/* 按钮 */

	.anbut-tj-fd-main {
		background: #fff;
		position: fixed;
		width: 100%;
		bottom: 0;
		z-index: 9;
		/* padding-bottom: 10px; */

	}

	.addCar-reset-determine {
		/* margin-top: 130rpx; */
		display: flex;
		justify-content: center;
		/* padding-bottom: 60rpx; */
	}



	.addCar-reset-determine>view {
		width: 100%;
		text-align: center;
		line-height: 100rpx;
		color: rgba(255, 255, 255, 1);
		font-size: 32rpx;
		/* border-radius: 20rpx; */
	}

	.addCar-reset {
		width: 159rpx;
		background: rgba(234, 197, 15, 1);
		text-align: center;
		/* margin-left: 170rpx; */
		margin: 0 20rpx;
	}

	.addCar-determine {
		background: rgb(0, 122, 255);
		/* margin-left: 60rpx; */
	}

	.add-phone-main {
		position: relative;
	}

	.add-phone {
		position: absolute;
		top: 20rpx;
		right: 0;
		/* font-size: 50rpx; */
		color: rgba(0, 255, 127, 1);
		/* background: rgba(0, 255, 127, 1); */

	}

	.addCar-phone-car {
		display: inline-block;
		width: 310rpx;
		height: 44rpx;
		line-height: 44rpx;
		/* border: 1px solid rgba(0, 0, 0, .2); */
		/* border-radius: 3px; */
		text-align: center;
		vertical-align: middle;
		font-size: 30rpx;
	}

	input::placeholder {
		color: rgba(102, 102, 102, .5);
	}

	.item-box {
		display: flex;
	}

	.zhuang-huo-dizhi {
		background-color: #303133;
		color: #fff;
		border-radius: 50%;
		width: 50rpx;
		height: 50rpx;
		display: inline-block;
		font-size: 32rpx;
		text-align: center;
		margin-right: 10rpx;
		margin-bottom: 20rpx;
	}

	.xie-huo-dizhi {
		background-color: #2979ff;
		color: #fff;
		border-radius: 50%;
		width: 50rpx;
		height: 50rpx;
		line-height: 50rpx;
		display: inline-block;
		font-size: 32rpx;
		text-align: center;
		margin-right: 10rpx;
		margin-left: 20rpx;
		margin-top: 24rpx;
	}

	.zx-addres {
		position: fixed;
		z-index: 2;
		width: 100%;
		top: 0;
		background: rgba(255, 255, 255, 1);
		/* border-radius: 20rpx; */
		box-shadow: 4rpx 4rpx 20rpx #e5e5e5;
		/* padding: 20rpx 24rpx; */
		/* padding-bottom: 30rpx; */
		display: flex;
		/* border-bottom: 2rpx solid rgba(230, 230, 230, 1); */
		/* margin: 10rpx; */
		justify-content: flex-start;
		/* margin-top: 63px; */
		background-color: rgba(242, 242, 242, 1);
		padding-top: 102rpx;
		height: 332rpx;
		/* margin: 0 20rpx; */


	}

	.cx-box {
		display: flex;
		justify-content: flex-start;
		padding: 18rpx 0;
	}

	.text-jieshao {
		color: red;
		padding: 10rpx 24rpx;
		padding-bottom: 200rpx;
	}

	.iscar-nav {
		position: fixed;
		top: 0;
		width: 100%;
		/* height: 22vh; */
		/* box-sizing: border-box; */
		z-index: 2;
		background-color: #FFF;
	}

	.iscar-content {
		/* margin-top: 24vh; */
	}

	.iscar-nav-top {
		height: 10vh;
		/* background-color: #e3e3e3; */
	}

	.iscar-nav-search {
		display: flex;
		/* background-color: #e3e3e3; */
		padding-bottom: 20rpx;
	}

	.iscar-nav-search-ipt {
		flex: 1;
	}

	.iscar-nav-search-btn {
		width: 100rpx;
		height: 60rpx;
		line-height: 60rpx;
		/* font-size: 28rpx; */
		text-align: center;
		color: #333;
		margin: 0 20rpx;
	}

	.iscar-nav-btn {
		display: flex;
		justify-content: space-between;
		height: 90rpx;
		line-height: 90rpx;
		font-size: 36rpx;
		color: #333;
		padding: 0 40rpx;
		border-top: 2rpx solid #e3e3e3;
		border-bottom: 2rpx solid #e3e3e3;
		background-color: #fff;
	}

	.iscar-nav-btn view+view {
		color: #02a2f4;
	}

	.iscar-nav-btn view {
		/* width: 100rpx; */
		text-align: center;
	}

	.iscar-content {
		padding-left: 30rpx;
	}

	.xhdz-xinxi {
		width: 87%;
		background: #fff;
		border-radius: 0 20rpx 20rpx 0;
		display: flex;
		justify-content: space-between;
	}

	.cell-box {
		border-radius: 0 20rpx 20rpx 0 !important;
		background-color: #fff !important;
		margin-right: 10rpx;
	}

	.addCar-bottom {
		position: relative;
		/* padding-top: 125rpx; */
	}

	.xh-text {
		background: #fff;
		border-radius: 20rpx 0 0 20rpx;
		margin-left: 10rpx;
	}

	.titfbyd {
		z-index: 999;
		position: fixed;
		width: 100%;
		top: 23rpx;
		text-align: center;
	}

	/* .uni-picker-container .uni-picker-item{
		font-size: 40rpx !important;
	} */
</style>


<style>
	/* 收货地 */
	.sendorder-loadmore {
		padding: 20rpx 0 20rpx 0;
	}

	.vehicle .zanWSJ {
		padding-top: 200rpx;
	}

	.vehicle .zanWSJ>image {
		display: block;
		margin: 0 auto;
		height: 360rpx;
		width: 43%;
	}


	.vehicle {
		width: 100%;
		min-height: 135vh;
		background-color: rgba(242, 242, 242, 1);
		overflow: hidden;
	}

	/* 列表 */

	.vehicle .vehicle-car {
		width: 100%;
		background: rgba(255, 255, 255, 1);
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 24rpx;
	}

	.vehicle .vehicle-car-zdy {
		/* width: 100%; */
		/* background: rgba(255, 255, 255, 1); */
		padding: 24rpx;
	}

	.vehicle .vehicle-car-box {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.vehicle .vehicle-stick {
		width: 6rpx;
		height: 29rpx;
		display: inline-block;
		background: linear-gradient(0deg, rgba(57, 163, 216, 1), rgba(35, 199, 217, 1));
		border-radius: 8px;
		margin-right: 16rpx;
		line-height: 29rpx;
		position: relative;
		top: 2rpx;
	}

	.vehicle .vehicle-car-details {
		/* font-size: 28rpx; */
		color: rgba(51, 51, 51, 1);
		/* height: 29rpx; */
		line-height: 40rpx;
		/* height: 0.37rem;
	  line-height: 0.37rem; */
	}

	.vehicle .xxadres {
		font-size: 28rpx;
		color: #666;
		padding-bottom: 20rpx;
		display: flex;
		line-height: 35rpx;
	}

	.vehicle .adresTit {
		display: flex;
	}

	/* 添加 */
	.vehicle-add {
		height: 60rpx;
		/* font-size: 28rpx; */
		color: rgba(255, 254, 254, 1);
		background: rgba(0, 160, 241, 1);
		display: flex;
		flex-direction: row;
		align-items: center;
		border-radius: 10rpx;
		padding: 10rpx;
	}

	.vehicle .icontianjia,
	.vehicle .iconxiugai,
	.vehicle .iconbaocun,
	.vehicle .iconshanchu,
	.vehicle .iconqiyong,
	.vehicle .iconchakan {
		font-size: 30rpx;
		padding-left: 10rpx;
	}

	.vehicle-add-button {
		padding: 0 10rpx;
	}

	/* 内容 */
	.vehicle-content-box {
		/* width: 100%; */
		/* background: rgba(255, 255, 255, 1); */
	}

	.vehicle .vehicle-content {
		/* margin-top: 8rpx; */
		border-bottom: 2rpx solid rgba(230, 230, 230, 1);
	}

	.vehicle .vehicle-carNumber {
		font-size: 36rpx !important;
		font-weight: bold;
		padding-bottom: 20rpx;
		line-height: 40rpx;
	}

	.vehicle .vehicle-bottom view:nth-child(3)>view:first-child text:first-child {}

	.vehicle .vehicle-button-box {
		display: flex;
		justify-content: flex-end;
		padding: 30rpx 0;
	}

	.vehicle-button-margin {
		margin-right: 20rpx;
	}

	.vehicle-content-bottom {
		padding: 0 24rpx;
	}

	.vehicle-carName-phone {
		border-bottom: 2rpx solid rgba(230, 230, 230, 1);
		display: flex;
		justify-content: space-between;
		padding: 18rpx 0;
	}

	.vehicle input {
		display: inline-block;
		margin-bottom: 0 !important;
		padding: 0 !important;
		height: 43rpx !important;
		margin-left: 7rpx;
		color: rgba(51, 51, 51, 1);
		font-size: 34rpx;
		text-align: center;
		border: 2rpx solid rgba(0, 0, 0, .2);
		border-radius: 6rpx;
	}

	.inputBorder {
		border: none !important;
		text-align: left !important;
	}

	.deliveryPlace-carName {
		width: 100%;
	}

	.vehicle-input-money {
		width: 80% !important;
		display: inline-block;
		text-align: right;
	}

	.vehicle-input-two {
		width: 190rpx !important;
	}

	.vehicle-phone {
		width: 142rpx;
		display: inline-block;
		font-size: 34rpx;
		color: rgba(153, 153, 153, 1);
	}

	.vehicle-tare {
		padding: 18rpx 0;
	}

	.vehicle-dun {
		color: rgba(51, 51, 51, 1);
		font-size: 34rpx;
	}

	/* 收货地新style */
	.xjshd {
		position: fixed;
		z-index: 999;
		bottom: 0;
		text-align: center;
		width: 100%;
		/* height: 44rpx;
		font-size: 28rpx; */
		color: rgba(255, 254, 254, 1);
		/* display: flex;
		flex-direction: row;
		align-items: center; */
		background: #fff;
		padding: 30rpx 40rpx;
	}

	.shdList {
		/* border-radius: 20rpx; */
		background: #fff;
		/* margin: 20rpx; */
	}

	.xzxhdz {
		background: #FF0000;
		color: #fff;
		font-size: 24rpx;
		/* padding: 2px; */
		margin-right: 10rpx;
		border-radius: 40rpx;
		width: 40rpx;
		height: 40rpx;
		display: inline-block;
		text-align: center;
	}

	.shtit {
		text-align: center;
		margin: 0 auto;
		/* padding-top:20rpx; */
		height: 10vh;
		line-height: 10vh;
		background: #f2f2f2;
		border-radius: 60rpx 60rpx 0 0;

	}

	.shdz-main-pop {
		/* background:#fff; */
		/* border-ri */
	}
</style>
